Refactor the addPassesToEmitAssembly interface into a addPassesToEmitFile
[oota-llvm.git] / lib / Target / CBackend / CTargetMachine.h
index 80dc3c4a94ccbc1db05b26edee3bd50682fcd9a9..56c5367231248ca7de7a4fe32186011b15097716 100644 (file)
@@ -24,7 +24,8 @@ struct CTargetMachine : public TargetMachine {
     TargetMachine("CBackend", IL, M) {}
 
   // This is the only thing that actually does anything here.
-  virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
+  virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
+                                   CodeGenFileType FileType);
 
   // This class always works, but shouldn't be the default in most cases.
   static unsigned getModuleMatchQuality(const Module &M) { return 1; }