From b85a9ec6df63f30bbdef9a3975b1d31a680b15c1 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Wed, 13 Nov 2013 12:22:39 +0000 Subject: 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 --- include/clang/Driver/Options.td | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/clang/Driver') 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, Flags<[DriverOption, CC1Option]>, HelpText<"Disable generation of linker directives for automatic library linking">; +def fprofile_sample_use_EQ : Joined<["-"], "fprofile-sample-use=">, + Group, Flags<[DriverOption, CC1Option]>, + HelpText<"Enable sample-based profile guided optimizations">; + def fblocks : Flag<["-"], "fblocks">, Group, Flags<[CC1Option]>, HelpText<"Enable the 'blocks' language feature">; def fbootclasspath_EQ : Joined<["-"], "fbootclasspath=">, Group; -- cgit v1.2.1