[PATCH] D58043: Add experimental options for call site related dbg info
Djordje Todorovic via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 08:53:38 PDT 2019
djtodoro updated this revision to Diff 195198.
djtodoro retitled this revision from "Add option for emitting DW_OP_entry_values" to "Add experimental options for call site related dbg info".
djtodoro edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58043/new/
https://reviews.llvm.org/D58043
Files:
lib/Driver/ToolChains/Clang.cpp
Index: lib/Driver/ToolChains/Clang.cpp
===================================================================
--- lib/Driver/ToolChains/Clang.cpp
+++ lib/Driver/ToolChains/Clang.cpp
@@ -3397,8 +3397,15 @@
CmdArgs.push_back("-dwarf-explicit-import");
// Enable param entry values functionlaity.
- if (Args.hasArg(options::OPT_emit_param_entry_values))
+ if (Args.hasArg(options::OPT_emit_param_entry_values) &&
+ areOptimizationsEnabled(Args)) {
CmdArgs.push_back("-emit-param-entry-values-cc1");
+ CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back("-emit-entry-values=1");
+ CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back("-emit-call-site-info=1");
+
+ }
RenderDebugInfoCompressionArgs(Args, CmdArgs, D, TC);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58043.195198.patch
Type: text/x-patch
Size: 750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190415/530bd45b/attachment.bin>
More information about the cfe-commits
mailing list