diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-01-30 01:14:28 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-01-30 01:14:28 +0000 |
commit | 23b5f6721d5e7589a1780940e42aa2baa3fb990c (patch) | |
tree | ee54389694b3d813779e4fcd444b9a83f1c01466 /llvm/tools/llvm-lto/llvm-lto.cpp | |
parent | 988ce75c07d7bd5aac3503a71a47b27c56439c3b (diff) | |
download | bcm5719-llvm-23b5f6721d5e7589a1780940e42aa2baa3fb990c.tar.gz bcm5719-llvm-23b5f6721d5e7589a1780940e42aa2baa3fb990c.zip |
[llvm-lto] Add a line for setting LTOCodeGenerator's CPU string from command
line.
This is needed for a test case I plan to commit later.
llvm-svn: 227532
Diffstat (limited to 'llvm/tools/llvm-lto/llvm-lto.cpp')
-rw-r--r-- | llvm/tools/llvm-lto/llvm-lto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index 9cd031eaf8d..92bac8351fd 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -217,6 +217,9 @@ int main(int argc, char **argv) { for (unsigned i = 0; i < KeptDSOSyms.size(); ++i) CodeGen.addMustPreserveSymbol(KeptDSOSyms[i].c_str()); + // Set cpu and attrs strings for the default target/subtarget. + CodeGen.setCpu(MCPU.c_str()); + std::string attrs; for (unsigned i = 0; i < MAttrs.size(); ++i) { if (i > 0) |