summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-01-26 20:21:46 +0000
committerJim Laskey <jlaskey@mac.com>2006-01-26 20:21:46 +0000
commit0bbdc55333948ae65cbcd0ef8144820c92d012a2 (patch)
tree3317e0f7c818c1d76b964e395270be85d59c2e77 /llvm/lib/CodeGen/AsmPrinter.cpp
parent32b5f41f15ebb9e3ddeef82f90d1e08f956a8dc7 (diff)
downloadbcm5719-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.cpp5
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;
}
OpenPOWER on IntegriCloud