aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-05-13 17:16:54 -0700
committerFangrui Song <maskray@google.com>2020-05-14 10:37:33 -0700
commit5ecb51414637402b0f89a96924ac7b015d23bcfa (patch)
tree0a8d989612f8349ef247f69b934661207086c361 /clang/lib/Basic/SourceManager.cpp
parentf5a79713b612376baae54cb47c8ec87b14f4b9b3 (diff)
downloadllvm-5ecb51414637402b0f89a96924ac7b015d23bcfa.zip
llvm-5ecb51414637402b0f89a96924ac7b015d23bcfa.tar.gz
llvm-5ecb51414637402b0f89a96924ac7b015d23bcfa.tar.bz2
[Driver] Pass -plugin-opt=O2 for -Os -Oz and -plugin-opt=O1 for -Og
Fixes PR42445 (compiler driver options -Os -Oz translate to -plugin-opt=Os (Oz) which are not recognized by LLVMgold.so or LLD). The optimization level mapping matches CompilerInvocation.cpp:getOptimizationLevel() and SpeedLevel of PassBuilder::OptimizationLevel::O*. -plugin-opt=O* affects the way we construct regular LTO/ThinLTO pass manager pipeline. Reviewed By: pcc Differential Revision: https://reviews.llvm.org/D79919
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions