* Remove getPassName implementation
* Register all Passes
llvm-svn: 3015
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
index 9ab3d5f..083be03 100644
--- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
+++ b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -26,9 +26,7 @@
Function *MallocFunc; // Functions in the module we are processing
Function *FreeFunc; // Initialized by doPassInitializationVirt
public:
- inline RaiseAllocations() : MallocFunc(0), FreeFunc(0) {}
-
- const char *getPassName() const { return "Raise Allocations"; }
+ RaiseAllocations() : MallocFunc(0), FreeFunc(0) {}
// doPassInitialization - For the raise allocations pass, this finds a
// declaration for malloc and free if they exist.
@@ -41,6 +39,8 @@
bool runOnBasicBlock(BasicBlock &BB);
};
+RegisterPass<RaiseAllocations>
+X("raiseallocs", "Raise allocations from calls to instructions");
} // end anonymous namespace