[PATCH] Record the DWARF version in MCContext

David Blaikie dblaikie at gmail.com
Wed Apr 16 08:42:54 PDT 2014



================
Comment at: test/MC/ELF/gen-dwarf.s:2
@@ -3,1 +1,3 @@
+// RUN: llvm-mc -g -dwarf-version 2 -triple  i686-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
+// RUN: llvm-mc -g -dwarf-version 2 -triple  i686-pc-linux-gnu %s -filetype=asm -o - | FileCheck --check-prefix=ASM %s
 
----------------
I'm assuming this is a no-op for now? (well, other than to exercise the codepath - but adding or removing this flag doesn't change any behavior?)

Or perhaps this test case actually verifies the dwarf version?

Could you add another test case (possibly just a new RUN line on this test case with a different check prefix) to verify that if you pass a different dwarf version it appears in the output?


http://reviews.llvm.org/D3399






More information about the llvm-commits mailing list