summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-20 00:44:43 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-20 00:44:43 +0000
commit0a0987d198ec37fcca74c0b62937c5d3d95b500b (patch)
tree79da58749a86a806456ef0b32f9f136c6812472e /llvm/lib/CodeGen
parentfc1042f9bbc271dd56c4d78362c11bb984f1d1bc (diff)
downloadbcm5719-llvm-0a0987d198ec37fcca74c0b62937c5d3d95b500b.tar.gz
bcm5719-llvm-0a0987d198ec37fcca74c0b62937c5d3d95b500b.zip
Add an accessor method to DwarfWriter to tell of debugging info should be emitted.
llvm-svn: 65092
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 6a29121acc8..356f5a89c01 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -1331,9 +1331,10 @@ class DwarfDebug : public Dwarf {
public:
- /// ShouldEmitDwarf - Returns true if Dwarf declarations should be made.
+ /// ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should
+ /// be emitted.
///
- bool ShouldEmitDwarf() const { return shouldEmit; }
+ bool ShouldEmitDwarfDebug() const { return shouldEmit; }
/// AssignAbbrevNumber - Define a unique number for the abbreviation.
///
@@ -2963,7 +2964,7 @@ public:
/// EndModule - Emit all Dwarf sections that should come after the content.
///
void EndModule() {
- if (!ShouldEmitDwarf()) return;
+ if (!ShouldEmitDwarfDebug()) return;
// Standard sections final addresses.
Asm->SwitchToSection(TAI->getTextSection());
@@ -3021,7 +3022,7 @@ public:
void BeginFunction(MachineFunction *MF) {
this->MF = MF;
- if (!ShouldEmitDwarf()) return;
+ if (!ShouldEmitDwarfDebug()) return;
// Begin accumulating function debug information.
MMI->BeginFunction(MF);
@@ -3040,7 +3041,7 @@ public:
/// EndFunction - Gather and emit post-function debug information.
///
void EndFunction(MachineFunction *MF) {
- if (!ShouldEmitDwarf()) return;
+ if (!ShouldEmitDwarfDebug()) return;
// Define end label for subprogram.
EmitLabel("func_end", SubprogramCount);
@@ -4329,3 +4330,8 @@ void DwarfWriter::RecordVariable(GlobalVariable *GV, unsigned FrameIndex) {
DD->RecordVariable(GV, FrameIndex);
}
+/// ShouldEmitDwarfDebug - Returns true if Dwarf debugging declarations should
+/// be emitted.
+bool DwarfWriter::ShouldEmitDwarfDebug() const {
+ return DD->ShouldEmitDwarfDebug();
+}
OpenPOWER on IntegriCloud