mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Extract target triplet from optimized module.
Untabify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d8062bcee
commit
2681023488
@ -88,7 +88,8 @@ namespace llvm {
|
||||
NameToSymbolMap &symbols,
|
||||
std::set<std::string> &references);
|
||||
enum LTOStatus optimizeModules(const std::string &OutputFilename,
|
||||
std::vector<const char*> &exportList);
|
||||
std::vector<const char*> &exportList,
|
||||
std::string &targetTriple);
|
||||
|
||||
private:
|
||||
std::vector<Module *> modules;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user