* 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:
Chris Lattner 2002-07-23 18:02:23 +00:00
parent 72c27e2ae5
commit 33494521d3

View File

@ -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);