[llvm-commits] [llvm] r62190 - in /llvm/trunk: include/llvm/CodeGen/DwarfWriter.h lib/CodeGen/AsmPrinter/DwarfWriter.cpp lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Devang Patel
dpatel at apple.com
Tue Jan 13 14:54:57 PST 2009
Author: dpatel
Date: Tue Jan 13 16:54:57 2009
New Revision: 62190
URL: http://llvm.org/viewvc/llvm-project?rev=62190&view=rev
Log:
Undo previous checkin.
Modified:
llvm/trunk/include/llvm/CodeGen/DwarfWriter.h
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/include/llvm/CodeGen/DwarfWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DwarfWriter.h?rev=62190&r1=62189&r2=62190&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DwarfWriter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DwarfWriter.h Tue Jan 13 16:54:57 2009
@@ -97,9 +97,6 @@
///
void RecordVariable(GlobalVariable *GV, unsigned FrameIndex);
- /// hasDebugInfo - Return true if debug info intrinsics are seen in
- /// this module.
- bool hasDebugInfo();
};
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=62190&r1=62189&r2=62190&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Tue Jan 13 16:54:57 2009
@@ -4990,9 +4990,3 @@
void DwarfWriter::RecordVariable(GlobalVariable *GV, unsigned FrameIndex) {
DD->RecordVariable(GV, FrameIndex);
}
-
-/// hasDebugInfo - Return true if debug info intrinsics are seen in
-/// this module.
-bool DwarfWriter::hasDebugInfo() {
- return DD && DD->ShouldEmitDwarf();
-}
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=62190&r1=62189&r2=62190&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Jan 13 16:54:57 2009
@@ -23,7 +23,6 @@
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
-#include "llvm/CodeGen/DwarfWriter.h"
#include "llvm/CodeGen/PseudoSourceValue.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetData.h"
@@ -2041,8 +2040,8 @@
if (GA->getOffset() != 0) return false;
GlobalVariable *GV = dyn_cast<GlobalVariable>(GA->getGlobal());
if (!GV) return false;
- DwarfWriter *DW = getDwarfWriter();
- return DW && DW->hasDebugInfo();
+ MachineModuleInfo *MMI = getMachineModuleInfo();
+ return MMI && MMI->hasDebugInfo() && MMI->isVerified(GV);
}
More information about the llvm-commits
mailing list