diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-03-20 02:14:38 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-03-20 02:14:38 +0000 |
commit | 6f15b290b5f880762b1a9b6b0e68e08a508ae949 (patch) | |
tree | 57a42556db777fd3050f7c3a34f5ccc110c40e06 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 67ff9b6752b8821687895262d137976024e34f36 (diff) | |
download | bcm5719-llvm-6f15b290b5f880762b1a9b6b0e68e08a508ae949.tar.gz bcm5719-llvm-6f15b290b5f880762b1a9b6b0e68e08a508ae949.zip |
The flag "-coverage-function-names-in-data" is actually backwards -- we do
emit function names in .gcda files by default, and the flag turns that off!
Rename the flag to make it match what it actually does. This keeps the default
format compatible with gcc 4.2.
Also add a test for this flag.
llvm-svn: 177475
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 23d8b97ae13..952d1fb15d6 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -312,9 +312,8 @@ void EmitAssemblyHelper::CreatePasses(TargetMachine *TM) { memcpy(Options.Version, CodeGenOpts.CoverageVersion, 4); Options.UseCfgChecksum = CodeGenOpts.CoverageExtraChecksum; Options.NoRedZone = CodeGenOpts.DisableRedZone; - // FIXME: the clang flag name is backwards. Options.FunctionNamesInData = - !CodeGenOpts.CoverageFunctionNamesInData; + !CodeGenOpts.CoverageNoFunctionNamesInData; MPM->add(createGCOVProfilerPass(Options)); if (CodeGenOpts.getDebugInfo() == CodeGenOptions::NoDebugInfo) MPM->add(createStripSymbolsPass(true)); |