mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-04 22:28:27 +00:00
* Remove getPassName implementation
* Register all Passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -31,12 +31,10 @@ class LowerAllocations : public BasicBlockPass {
|
||||
|
||||
const TargetData &DataLayout;
|
||||
public:
|
||||
inline LowerAllocations(const TargetData &TD) : DataLayout(TD) {
|
||||
LowerAllocations(const TargetData &TD) : DataLayout(TD) {
|
||||
MallocFunc = FreeFunc = 0;
|
||||
}
|
||||
|
||||
const char *getPassName() const { return "Lower Allocations"; }
|
||||
|
||||
// doPassInitialization - For the lower allocations pass, this ensures that a
|
||||
// module contains a declaration for a malloc and a free function.
|
||||
//
|
||||
@@ -47,7 +45,6 @@ public:
|
||||
//
|
||||
bool runOnBasicBlock(BasicBlock &BB);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// createLowerAllocationsPass - Interface to this file...
|
||||
@@ -55,6 +52,10 @@ Pass *createLowerAllocationsPass(const TargetData &TD) {
|
||||
return new LowerAllocations(TD);
|
||||
}
|
||||
|
||||
static RegisterPass<LowerAllocations>
|
||||
X("lowerallocs", "Lower allocations from instructions to calls (TD)",
|
||||
createLowerAllocationsPass);
|
||||
|
||||
|
||||
// doInitialization - For the lower allocations pass, this ensures that a
|
||||
// module contains a declaration for a malloc and a free function.
|
||||
|
Reference in New Issue
Block a user