diff options
| author | Xinliang David Li <davidxl@google.com> | 2016-07-22 22:25:01 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2016-07-22 22:25:01 +0000 |
| commit | b7b335a2ce0acb82b680242c0910b423545f08f0 (patch) | |
| tree | 07dccd1d8809074fa4dcb9bf274e08114395aa2d /clang/lib/Driver | |
| parent | e063ddb3470d482a3dae086ce1d11f562e5e8e2e (diff) | |
| download | bcm5719-llvm-b7b335a2ce0acb82b680242c0910b423545f08f0.tar.gz bcm5719-llvm-b7b335a2ce0acb82b680242c0910b423545f08f0.zip | |
[Profile] Enable profile merging with -fprofile-generat[=<dir>]
This patch enables raw profile merging for this option which is the
new intended behavior.
llvm-svn: 276484
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1c9527d67c0..fda2f9b7df9 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -3609,7 +3609,7 @@ static void addPGOAndCoverageFlags(Compilation &C, const Driver &D, if (PGOGenerateArg->getOption().matches( options::OPT_fprofile_generate_EQ)) { SmallString<128> Path(PGOGenerateArg->getValue()); - llvm::sys::path::append(Path, "default.profraw"); + llvm::sys::path::append(Path, "default_%m.profraw"); CmdArgs.push_back( Args.MakeArgString(Twine("-fprofile-instrument-path=") + Path)); } |

