summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-decl-nested.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-08-29 23:19:58 +0000
committerManman Ren <manman.ren@gmail.com>2013-08-29 23:19:58 +0000
commite0064d8c246afc2b158fd714c5bdb68b4d2b1804 (patch)
tree02f747eda73fc84c3544fd037673e0fde644df88 /clang/test/CodeGenCXX/debug-info-decl-nested.cpp
parent0b410407820fac37863baa3479a3322fc8e0d997 (diff)
downloadbcm5719-llvm-e0064d8c246afc2b158fd714c5bdb68b4d2b1804.tar.gz
bcm5719-llvm-e0064d8c246afc2b158fd714c5bdb68b4d2b1804.zip
Debug Info: generate a unique identifier for C++ struct, class, union, and enum.
We use CXX mangler to generate unique identifier for external C++ struct, union, class and enum. Types with unique identifier are added to retained types by DIBuilder. Testing cases are updated to reflect the unique identifier generated for types. The order of MDNodes is changed because of retained types and testing cases are updated accordingly. Testing case debug-info-uuid.cpp now emits error with Itanium mangler, since uuid is not yet handled in Itanium mangler. And it will check for the error message. llvm-svn: 189622
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-decl-nested.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-decl-nested.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-decl-nested.cpp b/clang/test/CodeGenCXX/debug-info-decl-nested.cpp
index 7c8bd1facf2..8bfa1d01d7d 100644
--- a/clang/test/CodeGenCXX/debug-info-decl-nested.cpp
+++ b/clang/test/CodeGenCXX/debug-info-decl-nested.cpp
@@ -35,11 +35,11 @@ class OuterClass1
public:
InnerClass1();
} theInnerClass1;
-// CHECK1: metadata {{.*}}, metadata ![[DECL:[0-9]+]], metadata {{.*}}, i32 [[@LINE+5]]} ; [ DW_TAG_subprogram ] [line [[@LINE+5]]] [def] [Bar]
+// CHECK1: [[DECL:[0-9]+]] = {{.*}} ; [ DW_TAG_subprogram ] [line [[@LINE+2]]] [private] [Bar]
+// CHECK1: metadata {{.*}}, metadata ![[DECL]], metadata {{.*}}, i32 [[@LINE+4]]} ; [ DW_TAG_subprogram ] [line [[@LINE+4]]] [def] [Bar]
void Bar(const Foo1 *);
};
OuterClass1::InnerClass1 OuterClass1::theInnerClass1;
-// CHECK1: [[DECL]] = {{.*}} ; [ DW_TAG_subprogram ] [line [[@LINE-3]]] [private] [Bar]
void OuterClass1::Bar(const Foo1 *meta) { }
OpenPOWER on IntegriCloud