summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-01-08 00:31:02 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-01-08 00:31:02 +0000
commit5c0b298b918f9da6673b500e679580bd8bf7bbb2 (patch)
tree89abd92b959f42a1413b05dcef5e8906a3f7990a
parenta043d0cef2dd79222d61fe55f4148847ed07d58f (diff)
downloadbcm5719-llvm-5c0b298b918f9da6673b500e679580bd8bf7bbb2.tar.gz
bcm5719-llvm-5c0b298b918f9da6673b500e679580bd8bf7bbb2.zip
Mark artificial types as such in the annotated debug output.
llvm-svn: 171826
-rw-r--r--llvm/lib/IR/DebugInfo.cpp3
-rw-r--r--llvm/test/DebugInfo/X86/elf-names.ll3
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 6ca692e2745..d2883080977 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -1095,6 +1095,9 @@ void DIType::printInternal(raw_ostream &OS) const {
else if (isProtected())
OS << " [protected]";
+ if (isArtificial())
+ OS << " [artificial]";
+
if (isForwardDecl())
OS << " [fwd]";
}
diff --git a/llvm/test/DebugInfo/X86/elf-names.ll b/llvm/test/DebugInfo/X86/elf-names.ll
index 6e7154cfe80..b6a263dfcad 100644
--- a/llvm/test/DebugInfo/X86/elf-names.ll
+++ b/llvm/test/DebugInfo/X86/elf-names.ll
@@ -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
OpenPOWER on IntegriCloud