[PATCH] Print the argument names in declarations while debugging

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 11:45:05 PDT 2015


When llvm declarations have argument names, it would be nice to actually
print those names when debugging. Arguably, it'd be nice to print them
all the time, but that would mean the IR we output wouldn't round trip
through bitcode, which doesn't store the names.

The attached patch makes the varous print() methods in AsmWriter
optionally print "for debug" and makes the dump() methods set that
flag. The only thing this does differently for now is print the argument
names in declarations.

Does this seem reasonable?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: function-decl-debug.patch
Type: text/x-patch
Size: 10680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150914/9cd1173d/attachment-0001.bin>


More information about the llvm-commits mailing list