diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-22 20:57:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-22 20:57:13 +0000 |
commit | 6421a8815e14189121a5e20731fd005ea08793e1 (patch) | |
tree | 9bac7d62f3d88e0b1902b72db8b951782135aabe /tools/lto/LTOCodeGenerator.h | |
parent | 97ab5803df4a549db9cd93e80426971e64562672 (diff) | |
download | external_llvm-6421a8815e14189121a5e20731fd005ea08793e1.zip external_llvm-6421a8815e14189121a5e20731fd005ea08793e1.tar.gz external_llvm-6421a8815e14189121a5e20731fd005ea08793e1.tar.bz2 |
Add a lto_codegen_compile_to_file to avoid producing a file, reading it to
memory and writing it back to disk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/LTOCodeGenerator.h')
-rw-r--r-- | tools/lto/LTOCodeGenerator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lto/LTOCodeGenerator.h b/tools/lto/LTOCodeGenerator.h index 7798db9..f8fd357 100644 --- a/tools/lto/LTOCodeGenerator.h +++ b/tools/lto/LTOCodeGenerator.h @@ -41,6 +41,7 @@ struct LTOCodeGenerator { void addMustPreserveSymbol(const char* sym); bool writeMergedModules(const char* path, std::string& errMsg); + bool compile_to_file(const char** name, std::string& errMsg); const void* compile(size_t* length, std::string& errMsg); void setCodeGenDebugOptions(const char *opts); private: @@ -66,6 +67,7 @@ private: llvm::MemoryBuffer* _nativeObjectFile; std::vector<const char*> _codegenOptions; std::string _mCpu; + std::string _nativeObjectPath; }; #endif // LTO_CODE_GENERATOR_H |