diff options
author | Diego Novillo <dnovillo@google.com> | 2013-11-13 12:22:39 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2013-11-13 12:22:39 +0000 |
commit | 5c29705c131fcff9ba8412fd458c95228d7fe772 (patch) | |
tree | f994e085e84580e337539a77fee1f042b24327c3 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8d6568b56b5f983350530cb6401bf5e286af0b36 (diff) | |
download | bcm5719-llvm-5c29705c131fcff9ba8412fd458c95228d7fe772.tar.gz bcm5719-llvm-5c29705c131fcff9ba8412fd458c95228d7fe772.zip |
Add -fprofile-sample-use to Clang's driver.
This adds a new option -fprofile-sample-use=filename to Clang. It
tells the driver to schedule the SampleProfileLoader pass and passes
on the name of the profile file to use.
llvm-svn: 194567
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 8bac00b4e48..009d6ec094b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -357,6 +357,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, (Opts.OptimizationLevel > 1 && !Opts.OptimizeSize)); Opts.Autolink = !Args.hasArg(OPT_fno_autolink); + Opts.SampleProfileFile = Args.getLastArgValue(OPT_fprofile_sample_use_EQ); Opts.AsmVerbose = Args.hasArg(OPT_masm_verbose); Opts.ObjCAutoRefCountExceptions = Args.hasArg(OPT_fobjc_arc_exceptions); Opts.CUDAIsDevice = Args.hasArg(OPT_fcuda_is_device); |