diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-15 17:56:09 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-15 17:56:09 +0000 |
commit | d3526eab46b96509d3195cf3367811af67b6d2c7 (patch) | |
tree | e603d0169f5c4c51f323c32fe7db35233fe056b0 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 6e31b9b8c36c6dc1ed2bf9d47d9e04f1af17d0f4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0ecb3dfd19..3c284bfd91 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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 |