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 | b3e789ac2548a4382d0db03b573fd8a127617f8f (patch) | |
tree | a521e43b703e2c7efefa89d933b62982913c5b54 /lib/CodeGen/AsmPrinter.cpp | |
parent | e4a359e43b7af7db24482f1da3303c0bb7c9f425 (diff) |
Set up MachineDebugInfo to scan for debug information form "llvm.db"g globals.
Global Variable information is now pulled from "llvm.dbg.globals"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 6f216b7c99..cafc87e5cd 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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; } |