From 2681023488d70303ec788bc8a0a3f5336257830a Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 6 Sep 2006 00:28:22 +0000 Subject: Extract target triplet from optimized module. Untabify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30123 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lto/lto.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/lto') 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 &exportList) + std::vector &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: -- cgit v1.1