[llvm] [DWARF] Emit 0/1 for constant boolean values (PR #151225)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 01:46:38 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:
@dwblaikie Might be reading the DWARF spec incorrectly, but should the `2.6.1.1.4 Implicit Location Descriptions` section accommodate `DW_OP_lit*`, `DW_OP_const*`, etc.?
https://github.com/llvm/llvm-project/pull/151225
More information about the llvm-commits
mailing list