[llvm-commits] [llvm] r171826 - in /llvm/trunk: lib/IR/DebugInfo.cpp test/DebugInfo/X86/elf-names.ll
David Blaikie
dblaikie at gmail.com
Mon Jan 7 16:31:03 PST 2013
Author: dblaikie
Date: Mon Jan 7 18:31:02 2013
New Revision: 171826
URL: http://llvm.org/viewvc/llvm-project?rev=171826&view=rev
Log:
Mark artificial types as such in the annotated debug output.
Modified:
llvm/trunk/lib/IR/DebugInfo.cpp
llvm/trunk/test/DebugInfo/X86/elf-names.ll
Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=171826&r1=171825&r2=171826&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Mon Jan 7 18:31:02 2013
@@ -1095,6 +1095,9 @@
else if (isProtected())
OS << " [protected]";
+ if (isArtificial())
+ OS << " [artificial]";
+
if (isForwardDecl())
OS << " [fwd]";
}
Modified: llvm/trunk/test/DebugInfo/X86/elf-names.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/elf-names.ll?rev=171826&r1=171825&r2=171826&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/elf-names.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/elf-names.ll Mon Jan 7 18:31:02 2013
@@ -1,5 +1,6 @@
; RUN: llc -mtriple=x86_64-unknown-linux-gnu %s -o %t -filetype=obj
; RUN: llvm-dwarfdump %t | FileCheck %s
+; RUN: llvm-as < %s | llvm-dis | FileCheck --check-prefix=CHECK-DIS %s
; CHECK: 0x0000000b: DW_TAG_compile_unit
; CHECK: 0x00000012: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000035] = "foo.cpp")
@@ -9,6 +10,8 @@
; CHECK: 0x00000045: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000005d] = "c1")
; CHECK: 0x0000008d: DW_AT_artificial [DW_FORM_flag_present] (true)
+; CHECK-DIS: [artificial]
+
%class.D = type { i32, i32, i32, i32 }
@_ZN1DC1Ev = alias void (%class.D*)* @_ZN1DC2Ev
More information about the llvm-commits
mailing list