[llvm/DebugInfo] Simplify DW_OP_implicit_value condition (NFC)
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 27 Oct 2020 10:24:16 +0000 (11:24 +0100)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 27 Oct 2020 10:25:19 +0000 (11:25 +0100)
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 5e15abb..e460402 100644 (file)
@@ -2480,8 +2480,7 @@ void DwarfDebug::emitDebugLocValue(const AsmPrinter &AP, const DIBasicType *BT,
       DwarfExpr.addExpression(std::move(ExprCursor));
       return;
   } else if (Value.isConstantFP()) {
-    if (AP.getDwarfVersion() >= 4 && (AP.getDwarfDebug()->tuneForGDB() ||
-                                      AP.getDwarfDebug()->tuneForLLDB())) {
+    if (AP.getDwarfVersion() >= 4 && !AP.getDwarfDebug()->tuneForSCE()) {
       DwarfExpr.addConstantFP(Value.getConstantFP()->getValueAPF(), AP);
       return;
     } else if (Value.getConstantFP()