From 0bbdc55333948ae65cbcd0ef8144820c92d012a2 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Thu, 26 Jan 2006 20:21:46 +0000 Subject: 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 --- llvm/lib/CodeGen/AsmPrinter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp') 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()) { + DebugInfo->AnalyzeModule(M); + } + return false; } -- cgit v1.2.3