diff options
author | Nirav Dave <niravd@google.com> | 2017-01-31 17:00:35 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2017-01-31 17:00:35 +0000 |
commit | 0c86ccf4b418dde2d4b4d5b57a2aeae1e7d381fc (patch) | |
tree | 698c1022857b6fe985efcd347f3a4fb3c29c5871 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a7c041d1477bdfd753f7155b2cb1fb739eaddb0f (diff) | |
download | bcm5719-llvm-0c86ccf4b418dde2d4b4d5b57a2aeae1e7d381fc.tar.gz bcm5719-llvm-0c86ccf4b418dde2d4b4d5b57a2aeae1e7d381fc.zip |
[X86] Teach Clang about -mfentry flag
Replace mcount calls with calls to fentry.
Reviewers: hfinkel, craig.topper
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D28001
llvm-svn: 293649
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 a8c1e616577..a6a77661912 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -717,6 +717,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.XRayInstructionThreshold = getLastArgIntValue(Args, OPT_fxray_instruction_threshold_, 200, Diags); Opts.InstrumentForProfiling = Args.hasArg(OPT_pg); + Opts.CallFEntry = Args.hasArg(OPT_mfentry); Opts.EmitOpenCLArgMetadata = Args.hasArg(OPT_cl_kernel_arg_info); Opts.CompressDebugSections = Args.hasArg(OPT_compress_debug_sections); Opts.RelaxELFRelocations = Args.hasArg(OPT_mrelax_relocations); |