summaryrefslogtreecommitdiff
path: root/include/llvm/LTO/LTOModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/LTO/LTOModule.h')
-rw-r--r--include/llvm/LTO/LTOModule.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/LTO/LTOModule.h b/include/llvm/LTO/LTOModule.h
index 973466cc0e..f4693c8d22 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.