diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-01-26 20:21:46 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-01-26 20:21:46 +0000 |
commit | 0bbdc55333948ae65cbcd0ef8144820c92d012a2 (patch) | |
tree | 3317e0f7c818c1d76b964e395270be85d59c2e77 /llvm/lib/CodeGen/AsmPrinter.cpp | |
parent | 32b5f41f15ebb9e3ddeef82f90d1e08f956a8dc7 (diff) | |
download | bcm5719-llvm-0bbdc55333948ae65cbcd0ef8144820c92d012a2.tar.gz bcm5719-llvm-0bbdc55333948ae65cbcd0ef8144820c92d012a2.zip |
Set up MachineDebugInfo to scan for debug information form "llvm.db"g globals.
Global Variable information is now pulled from "llvm.dbg.globals"
llvm-svn: 25655
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 6f216b7c998..cafc87e5cd2 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -78,6 +78,11 @@ bool AsmPrinter::doInitialization(Module &M) { << "\n" << CommentString << " End of file scope inline assembly\n"; SwitchSection("", 0); // Reset back to no section. + + if (MachineDebugInfo *DebugInfo = getAnalysisToUpdate<MachineDebugInfo>()) { + DebugInfo->AnalyzeModule(M); + } + return false; } |