mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[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
This commit is contained in:
parent
71ba5ca6d1
commit
3705e6ad63
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user