]> granicus.if.org Git - clang/commitdiff
ftime-trace as a CoreOption
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 16 May 2019 15:14:01 +0000 (15:14 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 16 May 2019 15:14:01 +0000 (15:14 +0000)
Differential Revision: https://reviews.llvm.org/D61945

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360907 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td
test/Driver/cl-options.c

index 8b4007fc40295c51df01b0f2885eb8128ca84e3b..a931ae61c8f8dc7fc21ea3d5d0e778dbf1bb5152 100644 (file)
@@ -1747,7 +1747,7 @@ def Wframe_larger_than_EQ : Joined<["-"], "Wframe-larger-than=">, Group<f_Group>
 def : Flag<["-"], "fterminated-vtables">, Alias<fapple_kext>;
 def fthreadsafe_statics : Flag<["-"], "fthreadsafe-statics">, Group<f_Group>;
 def ftime_report : Flag<["-"], "ftime-report">, Group<f_Group>, Flags<[CC1Option]>;
-def ftime_trace : Flag<["-"], "ftime-trace">, Group<f_Group>, Flags<[CC1Option]>;
+def ftime_trace : Flag<["-"], "ftime-trace">, Group<f_Group>, Flags<[CC1Option, CoreOption]>;
 def ftlsmodel_EQ : Joined<["-"], "ftls-model=">, Group<f_Group>, Flags<[CC1Option]>;
 def ftrapv : Flag<["-"], "ftrapv">, Group<f_Group>, Flags<[CC1Option]>,
   HelpText<"Trap on integer overflow">;
index 3f49d83bb81febc0ac068c0199e19fe40a05cc42..046a6b1209f852dc758d311ec72eec876a3dc509 100644 (file)
 // RUN:     -fno-profile-instr-use \
 // RUN:     -fcs-profile-generate \
 // RUN:     -fcs-profile-generate=dir \
+// RUN:     -ftime-trace \
 // RUN:     --version \
 // RUN:     -Werror /Zs -- %s 2>&1