[lldb] [llvm] Stateful variable-location annotations in Disassembler::PrintInstructions() (follow-up to #147460) (PR #152887)

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 10:40:09 PDT 2025


================
@@ -18,16 +18,34 @@ def _compile_object(self, src_name, func_cflags="-g -gdwarf-5 -O2 -fno-inline"):
         self.assertTrue(os.path.exists(obj), f"missing object: {obj}")
         return obj
 
+    def _compile_or_assemble_object(
+        self,
+        src_name,
+        cflags="-g -gdwarf-5 -O2 -fno-inline -fno-omit-frame-pointer",
----------------
adrian-prantl wrote:

If the input is assembler, the. -O2 (and the -f flags) should have no effect, so you can remove them

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


More information about the llvm-commits mailing list