AsmWriter: Print the argument names in declarations while debugging
authorJustin Bogner <mail@justinbogner.com>
Sun, 27 Sep 2015 22:38:50 +0000 (22:38 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sun, 27 Sep 2015 22:38:50 +0000 (22:38 +0000)
commit0adaaa390db908941cf4c7d9c42d8c0109b3e00e
treec48d6c002442e5bb3265949f9f3d769cc20db057
parent164cc1e7357968db46baf15d804158b3f4d7aaf3
AsmWriter: Print the argument names in declarations while debugging

When llvm declarations have argument names, it's helpful 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.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248692 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Comdat.h
include/llvm/IR/Metadata.h
include/llvm/IR/Module.h
include/llvm/IR/Type.h
include/llvm/IR/Value.h
lib/IR/AsmWriter.cpp