From a3aea0193d8cb164742890c2b92ee797a1432420 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Tue, 27 Oct 2020 11:24:16 +0100 Subject: [PATCH] [llvm/DebugInfo] Simplify DW_OP_implicit_value condition (NFC) Signed-off-by: Med Ismail Bennani --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 5e15abb..e460402 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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() -- 2.7.4