Fix libLTO by #include'ing the initializers for all targets and all asm
[oota-llvm.git] / tools / lto / LTOCodeGenerator.h
index 7a931526b7400191809729e8fcd352210d919d54..e02a7ab1159f1b6ed267e3970e49ed80db067f44 100644 (file)
@@ -26,7 +26,6 @@
 // C++ class which implements the opaque lto_code_gen_t
 //
 
-class llvm::raw_ostream;
 class LTOCodeGenerator {
 public:
     static const char*        getVersionString();
@@ -37,6 +36,8 @@ public:
     bool                addModule(class LTOModule*, std::string& errMsg);
     bool                setDebugInfo(lto_debug_model, std::string& errMsg);
     bool                setCodePICModel(lto_codegen_model, std::string& errMsg);
+    void                setGccPath(const char* path);
+    void                setAssemblerPath(const char* path);
     void                addMustPreserveSymbol(const char* sym);
     bool                writeMergedModules(const char* path, 
                                                            std::string& errMsg);
@@ -60,6 +61,8 @@ private:
     StringSet                   _mustPreserveSymbols;
     llvm::MemoryBuffer*         _nativeObjectFile;
     std::vector<const char*>    _codegenOptions;
+    llvm::sys::Path*            _gccPath;
+    llvm::sys::Path*            _assemblerPath;
 };
 
 #endif // LTO_CODE_GENERATOR_H