diff options
author | Amy Huang <akhuang@google.com> | 2019-09-16 15:46:49 -0700 |
---|---|---|
committer | Amy Huang <akhuang@google.com> | 2019-10-30 16:52:39 -0700 |
commit | 6d03890384517919a3ba7fe4c35535425f278f89 (patch) | |
tree | c59920ab93a5c1aff299de42299eb26741cb6c19 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3dec30855e9a8e932ae2eadeacdca68d54c79377 (diff) | |
download | bcm5719-llvm-6d03890384517919a3ba7fe4c35535425f278f89.tar.gz bcm5719-llvm-6d03890384517919a3ba7fe4c35535425f278f89.zip |
[CodeView] Add option to disable inline line tables.
Summary:
This adds a clang option to disable inline line tables. When it is used,
the inliner uses the call site as the location of the inlined function instead of
marking it as an inline location with the function location.
See https://bugs.llvm.org/show_bug.cgi?id=42344
Reviewers: rnk
Subscribers: hiraditya, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D67723
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 f197a67e7a3..29736d2dee1 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -806,6 +806,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.RecordCommandLine = Args.getLastArgValue(OPT_record_command_line); Opts.MergeAllConstants = Args.hasArg(OPT_fmerge_all_constants); Opts.NoCommon = Args.hasArg(OPT_fno_common); + Opts.NoInlineLineTables = Args.hasArg(OPT_gno_inline_line_tables); Opts.NoImplicitFloat = Args.hasArg(OPT_no_implicit_float); Opts.OptimizeSize = getOptimizationLevelSize(Args); Opts.SimplifyLibCalls = !(Args.hasArg(OPT_fno_builtin) || |