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
This commit is contained in:
Jim Laskey
2006-01-26 20:21:46 +00:00
parent e4a359e43b
commit b3e789ac25
6 changed files with 417 additions and 437 deletions

View File

@ -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;
}