Add -print-dbginfo pass that prints LLVM IR with comments inserted to show

which source/line a certain BB/instruction comes from, original variable names,
and original (unmangled) C++ name of functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Torok Edwin
2008-12-16 09:09:19 +00:00
parent 620f28095b
commit 6e68106a47
3 changed files with 149 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ namespace {
(void) llvm::createMergeFunctionsPass();
(void) llvm::createPrintModulePass(0);
(void) llvm::createPrintFunctionPass("", 0);
(void) llvm::createDbgInfoPrinterPass();
(void)new llvm::IntervalPartition();
(void)new llvm::FindUsedTypes();