diff options
author | Devang Patel <dpatel@apple.com> | 2006-09-06 00:28:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-09-06 00:28:22 +0000 |
commit | 2681023488d70303ec788bc8a0a3f5336257830a (patch) | |
tree | dec80b1e443768aa1831b803c17834db9fbebe40 /tools/lto | |
parent | 5d8062bcee81a40d976bf0ed653b633b466c16d9 (diff) | |
download | external_llvm-2681023488d70303ec788bc8a0a3f5336257830a.zip external_llvm-2681023488d70303ec788bc8a0a3f5336257830a.tar.gz external_llvm-2681023488d70303ec788bc8a0a3f5336257830a.tar.bz2 |
Extract target triplet from optimized module.
Untabify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index a737953..df9634e 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -266,7 +266,8 @@ static enum LTOStatus lto_optimize(Module *M, std::ostream &Out, /// Return appropriate LTOStatus. enum LTOStatus LinkTimeOptimizer::optimizeModules(const std::string &OutputFilename, - std::vector<const char *> &exportList) + std::vector<const char *> &exportList, + std::string &targetTriple) { if (modules.empty()) return LTO_NO_WORK; @@ -316,6 +317,8 @@ LinkTimeOptimizer::optimizeModules(const std::string &OutputFilename, return status; } + targetTriple = bigOne->getTargetTriple(); + // Run GCC to assemble and link the program into native code. // // Note: |