Ignore DBG_VALUE machine instructions while constructing instruction ranges based...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 0ecb3dfd1967e5a20092222dd0476d7274424e82..3c284bfd91ea463e67ea18e93f54d161fdd3667f 100644 (file)
@@ -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