projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed01c9
)
[llvm-lto] Add a line for setting LTOCodeGenerator's CPU string from command
author
Akira Hatanaka
<ahatanaka@apple.com>
Fri, 30 Jan 2015 01:14:28 +0000
(
01:14
+0000)
committer
Akira Hatanaka
<ahatanaka@apple.com>
Fri, 30 Jan 2015 01:14:28 +0000
(
01:14
+0000)
line.
This is needed for a test case I plan to commit later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227532
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-lto/llvm-lto.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-lto/llvm-lto.cpp
b/tools/llvm-lto/llvm-lto.cpp
index 9cd031eaf8d392e85ebb463363135e3eeb543fba..92bac8351fd791f4939d68ff62e3fa86f66d7368 100644
(file)
--- a/
tools/llvm-lto/llvm-lto.cpp
+++ b/
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)