diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-13 21:25:00 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-13 21:25:00 +0000 |
commit | 70190877b7aff395f931cc568f376a07d0ba416e (patch) | |
tree | 082805ac0be1d31ba812c68dd9d7f8cf92ec9755 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | 46fb1cfe4ad23de4d91832d2978f7b0c7f6c15ab (diff) | |
download | external_llvm-70190877b7aff395f931cc568f376a07d0ba416e.zip external_llvm-70190877b7aff395f931cc568f376a07d0ba416e.tar.gz external_llvm-70190877b7aff395f931cc568f376a07d0ba416e.tar.bz2 |
Use dwarf writer to decide whether the module has debug info or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 88c96ba..d79e6aa 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -4984,3 +4984,9 @@ unsigned DwarfWriter::RecordRegionEnd(GlobalVariable *V) { unsigned DwarfWriter::getRecordSourceLineCount() { return DD->getRecordSourceLineCount(); } + +/// hasDebugInfo - Return true if debug info intrinsics are seen in +/// this module. +bool DwarfWriter::hasDebugInfo() { + return DD && DD->ShouldEmitDwarf(); +} |