diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-05 03:52:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-05 03:52:55 +0000 |
commit | 196dbdc160bc94d2b204d57bde5d54f1c21eb27d (patch) | |
tree | dbe282b3b463601e338344ed09390ede65e4e6e1 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | d2f5062c6d71e3fe76af489f6e2396cec51f90b3 (diff) | |
download | bcm5719-llvm-196dbdc160bc94d2b204d57bde5d54f1c21eb27d.tar.gz bcm5719-llvm-196dbdc160bc94d2b204d57bde5d54f1c21eb27d.zip |
eliminate DwarfDebug::shouldEmit, which is the same now as MMI::hasDebugInfo
llvm-svn: 100386
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 490a8662fd2..6da94a4331b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -301,7 +301,7 @@ DbgScope::~DbgScope() { 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 @@ void DwarfDebug::beginModule(Module *M) { if (!HasDebugInfo) return; - shouldEmit = true; - // Tell MMI that we have debug info. MMI->setDebugInfoAvailability(true); @@ -2265,7 +2263,7 @@ bool DwarfDebug::extractScopeInformation() { /// 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 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { /// 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); |