diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-05-24 20:40:51 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-05-24 20:40:51 +0000 |
commit | 7a00888a08fa68212a5679263c8f82313fa036ea (patch) | |
tree | e23b6810f2594c10b8e81e46dce8c7021632f3fb /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 042975183e8f6e970d12195588b27b67560a9712 (diff) | |
download | bcm5719-llvm-7a00888a08fa68212a5679263c8f82313fa036ea.tar.gz bcm5719-llvm-7a00888a08fa68212a5679263c8f82313fa036ea.zip |
[Driver] Add support for -finline-functions and /Ob2 flags
-finline-functions and /Ob2 are currently ignored by Clang. The only way to
enable inlining is to use the global O flags, which also enable other options,
or to emit LLVM bitcode using Clang, then running opt by hand with the inline
pass.
This patch allows to simply use the -finline-functions flag (same as GCC) or
/Ob2 in clang-cl mode to enable inlining without other optimizations.
This is the first patch of a serie to improve support for the /Ob flags.
Patch by Rudy Pons <rudy.pons@ilod.org>!
Differential Revision: http://reviews.llvm.org/D20576
llvm-svn: 270609
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
0 files changed, 0 insertions, 0 deletions