[llvm] [DWARF] Emit 0/1 for constant boolean values (PR #151225)

Michael Buch via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 00:49:05 PDT 2025


================
@@ -194,6 +194,15 @@ void DwarfExpression::addStackValue() {
     emitOp(dwarf::DW_OP_stack_value);
 }
 
+void DwarfExpression::addBooleanConstant(int64_t Value) {
+  assert(isImplicitLocation() || isUnknownLocation());
+  LocationKind = Implicit;
----------------
Michael137 wrote:

Ah should've clarified. I didn't think it would have any affect on this particular implementation. Was just comparing the code to what the DWARF spec says about implicit locations and I didn't see mentions of constants

https://github.com/llvm/llvm-project/pull/151225


More information about the llvm-commits mailing list