[PATCH] DebugInfo: Permit DW_TAG_structure_type, DW_TAG_member, DW_TAG_typedef tags with empty file names.
Paul Robinson
Paul_Robinson at playstation.sony.com
Tue Mar 24 18:05:09 PDT 2015
================
Comment at: test/DebugInfo/missing-file-line.ll:1
@@ +1,2 @@
+; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj %s -o - | llvm-dwarfdump -debug-dump=all - | FileCheck %s
+
----------------
Generating an object file and going through llvm-dwarfdump means you need
REQUIRES: object-emission
Also, as the test is now architecture-dependent, it needs to go in the DebugInfo/X86 directory.
================
Comment at: test/DebugInfo/missing-file-line.ll:16
@@ +15,3 @@
+ ; CHECK-DAG: DW_TAG_structure_type
+ ; CHECK-DAG: DW_TAG_member
+ call void @llvm.dbg.declare(metadata %struct.S* %x, metadata !10, metadata !16), !dbg !17
----------------
These checks verify that you accept metadata with no source location; however I think it doesn't verify that what comes back out has no source location?
http://reviews.llvm.org/D8588
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list