[llvm] [Support][ScopedPrinter] Emit valid JSON in printHex<ulittle16_t> (PR #200071)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 01:02:12 PDT 2026


================
@@ -233,3 +233,20 @@ Sections:
 # RUN:  | FileCheck %s -DFILE=%t.invalid2 -DSECHDRCOUNT="<?>" -DSECHDRSTRTABINDEX="<?>" --check-prefix=INVALID-LLVM
 # RUN: not llvm-readelf --file-headers %t.invalid2 2>&1 \
 # RUN:  | FileCheck %s -DFILE=%t.invalid2 -DSECHDRCOUNT="<?>" -DSECHDRSTRTABINDEX="<?>" --check-prefix=INVALID-GNU
+
+## --elf-output-style=JSON must emit well-formed JSON when e_machine is not
+## in any known enum table (regression: raw "Machine: 0x..." inside JSON).
----------------
jh7370 wrote:

I don't think the bit in parentheses about "regression..." is needed. Please delete it.

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


More information about the llvm-commits mailing list