Add support for byval function whose argument is not 32 bit aligned.
[oota-llvm.git] / lib / CodeGen / UnreachableBlockElim.cpp
index fe334849ac42e58011caf11fcd26aac5d6e60355..0a611ab9bb35a05d67b0a9682486a3eeddfed940 100644 (file)
@@ -34,8 +34,12 @@ using namespace llvm;
 namespace {
   class VISIBILITY_HIDDEN UnreachableBlockElim : public FunctionPass {
     virtual bool runOnFunction(Function &F);
+  public:
+    static char ID; // Pass identification, replacement for typeid
+    UnreachableBlockElim() : FunctionPass((intptr_t)&ID) {}
   };
-  RegisterOpt<UnreachableBlockElim>
+  char UnreachableBlockElim::ID = 0;
+  RegisterPass<UnreachableBlockElim>
   X("unreachableblockelim", "Remove unreachable blocks from the CFG");
 }