Reapply r65755, but reversing "<" to ">=".
[oota-llvm.git] / tools / lto / LTOCodeGenerator.h
index eab076ebc88015dd3294161a9608872165e33cec..4a28136f0ad8b62e229c57d4e92858e5f7aa51cb 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "llvm/Linker.h"
 #include "llvm/ADT/StringMap.h"
+#include "llvm/ADT/SmallVector.h"
 
 #include <string>
 
@@ -24,6 +25,7 @@
 //
 // C++ class which implements the opaque lto_code_gen_t
 //
+
 class LTOCodeGenerator {
 public:
     static const char*        getVersionString();
@@ -38,10 +40,10 @@ public:
     bool                writeMergedModules(const char* path, 
                                                            std::string& errMsg);
     const void*         compile(size_t* length, std::string& errMsg);
-    
+    void                setCodeGenDebugOptions(const char *opts); 
 private:
-    bool                generateAssemblyCode(std::ostream& out, 
-                                                        std::string& errMsg);
+    bool                generateAssemblyCode(llvm::raw_ostream& out, 
+                                             std::string& errMsg);
     bool                assemble(const std::string& asmPath, 
                             const std::string& objPath, std::string& errMsg);
     void                applyScopeRestrictions();
@@ -56,6 +58,7 @@ private:
     lto_codegen_model           _codeModel;
     StringSet                   _mustPreserveSymbols;
     llvm::MemoryBuffer*         _nativeObjectFile;
+    std::vector<const char*>    _codegenOptions;
 };
 
 #endif // LTO_CODE_GENERATOR_H