[llvm-commits] [llvm] r100386 - in /llvm/trunk/lib/CodeGen/AsmPrinter: DwarfDebug.cpp DwarfDebug.h
Chris Lattner
sabre at nondot.org
Sun Apr 4 20:52:55 PDT 2010
Author: lattner
Date: Sun Apr 4 22:52:55 2010
New Revision: 100386
URL: http://llvm.org/viewvc/llvm-project?rev=100386&view=rev
Log:
eliminate DwarfDebug::shouldEmit, which is the same now as MMI::hasDebugInfo
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=100386&r1=100385&r2=100386&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Sun Apr 4 22:52:55 2010
@@ -301,7 +301,7 @@
DwarfDebug::DwarfDebug(AsmPrinter *A)
: Asm(A), MMI(Asm->MMI), ModuleCU(0),
- AbbreviationsSet(InitAbbreviationsSetSize), shouldEmit(false),
+ AbbreviationsSet(InitAbbreviationsSetSize),
CurrentFnDbgScope(0), DebugTimer(0) {
NextStringPoolNumber = 0;
@@ -1815,8 +1815,6 @@
if (!HasDebugInfo) return;
- shouldEmit = true;
-
// Tell MMI that we have debug info.
MMI->setDebugInfoAvailability(true);
@@ -2265,7 +2263,7 @@
/// beginFunction - Gather pre-function debug information. Assumes being
/// emitted immediately after the function entry point.
void DwarfDebug::beginFunction(const MachineFunction *MF) {
- if (!ShouldEmitDwarfDebug()) return;
+ if (!MMI->hasDebugInfo()) return;
TimeRegion Timer(DebugTimer);
if (!extractScopeInformation())
@@ -2300,7 +2298,7 @@
/// endFunction - Gather and emit post-function debug information.
///
void DwarfDebug::endFunction(const MachineFunction *MF) {
- if (!ShouldEmitDwarfDebug()) return;
+ if (!MMI->hasDebugInfo()) return;
if (DbgScopeMap.empty()) return;
TimeRegion Timer(DebugTimer);
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=100386&r1=100385&r2=100386&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Sun Apr 4 22:52:55 2010
@@ -126,10 +126,6 @@
///
std::vector<std::vector<SrcLineInfo> > SectionSourceLines;
- /// shouldEmit - Flag to indicate if debug information should be emitted.
- ///
- bool shouldEmit;
-
// CurrentFnDbgScope - Top level scope for the current function.
//
DbgScope *CurrentFnDbgScope;
@@ -520,10 +516,6 @@
DwarfDebug(AsmPrinter *A);
virtual ~DwarfDebug();
- /// ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should
- /// be emitted.
- bool ShouldEmitDwarfDebug() const { return shouldEmit; }
-
/// beginModule - Emit all Dwarf sections that should come prior to the
/// content.
void beginModule(Module *M);
More information about the llvm-commits
mailing list