summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-05-30 18:42:51 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-05-30 18:42:51 +0000
commit787705ae0d4a5e7f2f6a7b8be4fe10c565455417 (patch)
treec07ac83f6242cb01864df791a7b73f26d4150aa5 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parent406a2db1f6cdcf8de80ad7e70202de630bae0f8f (diff)
downloadbcm5719-llvm-787705ae0d4a5e7f2f6a7b8be4fe10c565455417.tar.gz
bcm5719-llvm-787705ae0d4a5e7f2f6a7b8be4fe10c565455417.zip
Reinstate -O3 for LTO.
This broke in r144788 when the CodeGenOpt option was moved from everywhere else (specifically, from addPassesToEmitFile) to createTargetMachine. Since LTOCodeGenerator wasn't passing the 4th argument, when the 4th parameter became the 3rd, it silently continued to compile (int->bool conversion) but meant something completely different. This change preserves the existing (accidental) and previous (default) semantics of the addPassesToEmitFile and restores the previous/intended CodeGenOpt argument by passing it appropriately to createTargetMachine. (discovered by pending changes to -Wconversion to catch constant->bool conversions) llvm-svn: 157705
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud