diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-30 16:39:19 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-30 16:39:19 +0000 |
commit | c13c9e5a9d288eac494a38f0710d34446167f940 (patch) | |
tree | 9963870fcea50321766abe308393c6f996187897 /include/llvm/LTO/LTOModule.h | |
parent | 4b5205d2a3e0df909f29de0bff8ea775ad21fe0f (diff) | |
download | external_llvm-c13c9e5a9d288eac494a38f0710d34446167f940.zip external_llvm-c13c9e5a9d288eac494a38f0710d34446167f940.tar.gz external_llvm-c13c9e5a9d288eac494a38f0710d34446167f940.tar.bz2 |
Move command line options to the users of libLTO. Fixes --enable-shared build.
Patch by Richard Sandiford.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LTO/LTOModule.h')
-rw-r--r-- | include/llvm/LTO/LTOModule.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/LTO/LTOModule.h b/include/llvm/LTO/LTOModule.h index 973466c..f4693c8 100644 --- a/include/llvm/LTO/LTOModule.h +++ b/include/llvm/LTO/LTOModule.h @@ -84,14 +84,17 @@ public: /// InitializeAllAsmPrinters(); /// InitializeAllAsmParsers(); static LTOModule *makeLTOModule(const char* path, + llvm::TargetOptions options, std::string &errMsg); static LTOModule *makeLTOModule(int fd, const char *path, - size_t size, std::string &errMsg); + size_t size, llvm::TargetOptions options, + std::string &errMsg); static LTOModule *makeLTOModule(int fd, const char *path, size_t map_size, - off_t offset, + off_t offset, llvm::TargetOptions options, std::string& errMsg); static LTOModule *makeLTOModule(const void *mem, size_t length, + llvm::TargetOptions options, std::string &errMsg); /// getTargetTriple - Return the Module's target triple. @@ -132,10 +135,6 @@ public: return _asm_undefines; } - /// getTargetOptions - Fill the TargetOptions object with the options - /// specified on the command line. - static void getTargetOptions(llvm::TargetOptions &Options); - private: /// parseSymbols - Parse the symbols from the module and model-level ASM and /// add them to either the defined or undefined lists. @@ -187,6 +186,7 @@ private: /// makeLTOModule - Create an LTOModule (private version). N.B. This /// method takes ownership of the buffer. static LTOModule *makeLTOModule(llvm::MemoryBuffer *buffer, + llvm::TargetOptions options, std::string &errMsg); /// makeBuffer - Create a MemoryBuffer from a memory range. |