summaryrefslogtreecommitdiff
path: root/include/clang/Driver
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2013-11-13 12:22:39 +0000
committerDiego Novillo <dnovillo@google.com>2013-11-13 12:22:39 +0000
commitb85a9ec6df63f30bbdef9a3975b1d31a680b15c1 (patch)
treed6ffee22c60fa3ae4cb74605dfd217b43cb406db /include/clang/Driver
parentd1fa81ccbce1ba2d8f467e7c2800250b81ea2e35 (diff)
downloadclang-b85a9ec6df63f30bbdef9a3975b1d31a680b15c1.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver')
-rw-r--r--include/clang/Driver/Options.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td
index 1240132b91..e03bc11f65 100644
--- a/include/clang/Driver/Options.td
+++ b/include/clang/Driver/Options.td
@@ -365,6 +365,10 @@ def fno_autolink : Flag <["-"], "fno-autolink">, Group<f_Group>,
Flags<[DriverOption, CC1Option]>,
HelpText<"Disable generation of linker directives for automatic library linking">;
+def fprofile_sample_use_EQ : Joined<["-"], "fprofile-sample-use=">,
+ Group<f_Group>, Flags<[DriverOption, CC1Option]>,
+ HelpText<"Enable sample-based profile guided optimizations">;
+
def fblocks : Flag<["-"], "fblocks">, Group<f_Group>, Flags<[CC1Option]>,
HelpText<"Enable the 'blocks' language feature">;
def fbootclasspath_EQ : Joined<["-"], "fbootclasspath=">, Group<f_Group>;