diff options
| author | Hans Wennborg <hans@hanshq.net> | 2017-11-14 21:13:27 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2017-11-14 21:13:27 +0000 |
| commit | 76c26c1dcaaff44e098e5cbf78cfead1c3c39380 (patch) | |
| tree | d026dae3385ed49a9192f715c395eed2a231749e /clang/lib/Driver | |
| parent | e1ecd61b9813453ceb442f71a75ee3c1b28189f0 (diff) | |
| download | bcm5719-llvm-76c26c1dcaaff44e098e5cbf78cfead1c3c39380.tar.gz bcm5719-llvm-76c26c1dcaaff44e098e5cbf78cfead1c3c39380.zip | |
Switch -mcount and -finstrument-functions to emit EnterExitInstrumenter attributes
This updates -mcount to use the new attribute names (LLVM r318195), and
switches over -finstrument-functions to also use these attributes rather
than inserting instrumentation in the frontend.
It also adds a new flag, -finstrument-functions-after-inlining, which
makes the cygprofile instrumentation get inserted after inlining rather
than before.
Differential Revision: https://reviews.llvm.org/D39331
llvm-svn: 318199
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Clang.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index ce901dac26f..8a2d6018655 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -3545,7 +3545,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_unique_section_names, true)) CmdArgs.push_back("-fno-unique-section-names"); - Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions); + Args.AddLastArg(CmdArgs, options::OPT_finstrument_functions, + options::OPT_finstrument_functions_after_inlining); addPGOAndCoverageFlags(C, D, Output, Args, CmdArgs); |

