mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +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:
parent
72c27e2ae5
commit
33494521d3
@ -529,7 +529,9 @@ static bool doRPR(Function &F) {
|
||||
|
||||
namespace {
|
||||
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); }
|
||||
|
||||
@ -539,8 +541,9 @@ namespace {
|
||||
};
|
||||
}
|
||||
|
||||
Pass *createRaisePointerReferencesPass() {
|
||||
return new RaisePointerReferences();
|
||||
Pass *createRaisePointerReferencesPass(const TargetData &TD) {
|
||||
return new RaisePointerReferences(TD);
|
||||
}
|
||||
|
||||
|
||||
static RegisterPass<RaisePointerReferences>
|
||||
X("raise", "Raise Pointer References", createRaisePointerReferencesPass);
|
||||
|
Loading…
x
Reference in New Issue
Block a user