aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lto/LTOCodeGenerator.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-02-24 21:04:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-02-24 21:04:06 +0000
commite9efea1194691580c74520aad48887d95fd0ce1b (patch)
tree3b8040608bb9494594bf013a9d228a05b5e78683 /tools/lto/LTOCodeGenerator.h
parentf410608271b6318bfc9e26c0d199f185d5a89ccb (diff)
downloadexternal_llvm-e9efea1194691580c74520aad48887d95fd0ce1b.zip
external_llvm-e9efea1194691580c74520aad48887d95fd0ce1b.tar.gz
external_llvm-e9efea1194691580c74520aad48887d95fd0ce1b.tar.bz2
Switch LTO to use MC. This takes the linking of libxul.so from about 7m to
6m30. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/LTOCodeGenerator.h')
-rw-r--r--tools/lto/LTOCodeGenerator.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/lto/LTOCodeGenerator.h b/tools/lto/LTOCodeGenerator.h
index f5b78a6..0556520 100644
--- a/tools/lto/LTOCodeGenerator.h
+++ b/tools/lto/LTOCodeGenerator.h
@@ -37,18 +37,14 @@ struct LTOCodeGenerator {
bool setDebugInfo(lto_debug_model, std::string& errMsg);
bool setCodePICModel(lto_codegen_model, std::string& errMsg);
void setCpu(const char *cpu);
- void setAssemblerPath(const char* path);
- void setAssemblerArgs(const char** args, int nargs);
void addMustPreserveSymbol(const char* sym);
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(llvm::raw_ostream& out,
- std::string& errMsg);
- bool assemble(const std::string& asmPath,
- const std::string& objPath, std::string& errMsg);
+ bool generateObjectFile(llvm::raw_ostream& out,
+ std::string& errMsg);
void applyScopeRestrictions();
bool determineTarget(std::string& errMsg);
@@ -63,9 +59,7 @@ private:
StringSet _mustPreserveSymbols;
llvm::MemoryBuffer* _nativeObjectFile;
std::vector<const char*> _codegenOptions;
- llvm::sys::Path* _assemblerPath;
std::string _mCpu;
- std::vector<std::string> _assemblerArgs;
};
#endif // LTO_CODE_GENERATOR_H