diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-23 05:43:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-23 05:43:16 +0000 |
commit | bc641b9d8b5ecafe0137c1a49f4777608981d81b (patch) | |
tree | 8e5e67134c5d36215f4264d7fa9f46c8eb70a843 /lib/Target/CBackend/Writer.cpp | |
parent | 475c010366da9788b5f87d6a453d5eed6053ef46 (diff) |
Eliminate IntrinsicLowering from TargetMachine.
Make the CBE and V9 backends create their own, since they're the only ones that use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 89881897cd..53893870df 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -67,7 +67,7 @@ namespace { /// module to a C translation unit. class CWriter : public FunctionPass, public InstVisitor<CWriter> { std::ostream &Out; - IntrinsicLowering &IL; + DefaultIntrinsicLowering IL; Mangler *Mang; LoopInfo *LI; const Module *TheModule; @@ -75,7 +75,7 @@ namespace { std::map<const ConstantFP *, unsigned> FPConstantMap; public: - CWriter(std::ostream &o, IntrinsicLowering &il) : Out(o), IL(il) {} + CWriter(std::ostream &o) : Out(o) {} virtual const char *getPassName() const { return "C backend"; } @@ -1931,6 +1931,6 @@ bool CTargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &o, PM.add(createLowerInvokePass()); PM.add(createCFGSimplificationPass()); // clean up after lower invoke. PM.add(new CBackendNameAllUsedStructsAndMergeFunctions()); - PM.add(new CWriter(o, getIntrinsicLowering())); + PM.add(new CWriter(o)); return false; } |