mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
* Make the ctor take a TargetData even though it's not using it yet
* Register the pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -529,7 +529,9 @@ static bool doRPR(Function &F) {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct RaisePointerReferences : public FunctionPass {
|
struct RaisePointerReferences : public FunctionPass {
|
||||||
const char *getPassName() const { return "Raise Pointer References"; }
|
|
||||||
|
// FIXME: constructor should save and use target data here!!
|
||||||
|
RaisePointerReferences(const TargetData &TD) {}
|
||||||
|
|
||||||
virtual bool runOnFunction(Function &F) { return doRPR(F); }
|
virtual bool runOnFunction(Function &F) { return doRPR(F); }
|
||||||
|
|
||||||
@ -539,8 +541,9 @@ namespace {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Pass *createRaisePointerReferencesPass() {
|
Pass *createRaisePointerReferencesPass(const TargetData &TD) {
|
||||||
return new RaisePointerReferences();
|
return new RaisePointerReferences(TD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static RegisterPass<RaisePointerReferences>
|
||||||
|
X("raise", "Raise Pointer References", createRaisePointerReferencesPass);
|
||||||
|
Reference in New Issue
Block a user