summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-02-15 17:56:09 +0000
committerDevang Patel <dpatel@apple.com>2011-02-15 17:56:09 +0000
commitd12c0a2764ac85000eb89aa5d8d7d4ef4ac8f4a4 (patch)
tree8e967077bbe2b656f6c0eb7c968c2eca36eab902 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent10b2368e9f90898888300748f96bba6a566e283e (diff)
downloadbcm5719-llvm-d12c0a2764ac85000eb89aa5d8d7d4ef4ac8f4a4.tar.gz
bcm5719-llvm-d12c0a2764ac85000eb89aa5d8d7d4ef4ac8f4a4.zip
Ignore DBG_VALUE machine instructions while constructing instruction ranges based on location info.
Machine instruction range consisting of only DBG_VALUE MIs only contributes consecutive labels in assembly output, which is harmless, and empty scope entry in DebugInfo, which confuses debugger tools. llvm-svn: 125577
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 0ecb3dfd196..3c284bfd91e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2708,6 +2708,10 @@ bool DwarfDebug::extractScopeInformation() {
continue;
}
+ // Ignore DBG_VALUE. It does not contribute any instruction in output.
+ if (MInsn->isDebugValue())
+ continue;
+
if (RangeBeginMI) {
// If we have alread seen a beginning of a instruction range and
// current instruction scope does not match scope of first instruction
OpenPOWER on IntegriCloud