Changes in directory llvm/lib/Target/CBackend:
CTargetMachine.h updated: 1.9 -> 1.10 Writer.cpp updated: 1.257 -> 1.258 --- Log message: Eliminate IntrinsicLowering from TargetMachine. Make the CBE and V9 backends create their own, since they're the only ones that use it. --- Diffs of the changes: (+5 -7) CTargetMachine.h | 6 ++---- Writer.cpp | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) Index: llvm/lib/Target/CBackend/CTargetMachine.h diff -u llvm/lib/Target/CBackend/CTargetMachine.h:1.9 llvm/lib/Target/CBackend/CTargetMachine.h:1.10 --- llvm/lib/Target/CBackend/CTargetMachine.h:1.9 Mon Nov 7 20:11:51 2005 +++ llvm/lib/Target/CBackend/CTargetMachine.h Wed Mar 22 23:43:15 2006 @@ -17,12 +17,10 @@ #include "llvm/Target/TargetMachine.h" namespace llvm { -class IntrinsicLowering; struct CTargetMachine : public TargetMachine { - CTargetMachine(const Module &M, IntrinsicLowering *IL, - const std::string &FS) : - TargetMachine("CBackend", IL, M) {} + CTargetMachine(const Module &M, const std::string &FS) + : TargetMachine("CBackend", M) {} // This is the only thing that actually does anything here. virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out, Index: llvm/lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.257 llvm/lib/Target/CBackend/Writer.cpp:1.258 --- llvm/lib/Target/CBackend/Writer.cpp:1.257 Mon Mar 13 17:09:05 2006 +++ llvm/lib/Target/CBackend/Writer.cpp Wed Mar 22 23:43:15 2006 @@ -67,7 +67,7 @@ /// 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 @@ 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 @@ 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; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits