diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-03-26 23:09:30 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-03-26 23:09:30 +0000 |
| commit | 55b2d89ef0e286fa369cd6af5e6c64d8e8d58b87 (patch) | |
| tree | cb148d79a7f5a993234c0aa0bd0911ea55b6525a /test/CodeGenCXX/debug-info-function-context.cpp | |
| parent | 20acbd9eeba394e7e53aafda5e59702be8112d94 (diff) | |
| download | clang-55b2d89ef0e286fa369cd6af5e6c64d8e8d58b87.tar.gz clang-55b2d89ef0e286fa369cd6af5e6c64d8e8d58b87.tar.bz2 clang-55b2d89ef0e286fa369cd6af5e6c64d8e8d58b87.tar.xz | |
Just call getContextDescriptor to get the context for subprograms
instead of rolling an inefficient version of the function. This
changes some order of emission of metadata nodes, fix up those
testcases and make them more flexible to some changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-function-context.cpp')
| -rw-r--r-- | test/CodeGenCXX/debug-info-function-context.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/CodeGenCXX/debug-info-function-context.cpp b/test/CodeGenCXX/debug-info-function-context.cpp index 4ca1c8d1ec..84dabae202 100644 --- a/test/CodeGenCXX/debug-info-function-context.cpp +++ b/test/CodeGenCXX/debug-info-function-context.cpp @@ -25,12 +25,10 @@ int global_namespace_variable = 1; // functions that belong to the namespace have it as a context, and the global // function has the file as a context. +// CHECK: [[FILE:![0-9]*]] {{.*}}debug-info-function-context.cpp" // CHECK: metadata !"_ZTS1C", metadata !"member_function"{{.*}} [ DW_TAG_subprogram ] [line 11] [def] [member_function] - // CHECK: metadata !"_ZTS1C", metadata !"static_member_function"{{.*}} [ DW_TAG_subprogram ] [line 13] [def] [static_member_function] +// CHECK: metadata [[FILE]], null, metadata !"global_function"{{.*}} [ DW_TAG_subprogram ] [line 17] [def] [global_function] +// CHECK: metadata [[NS:![0-9]*]], metadata !"global_namespace_function"{{.*}} [ DW_TAG_subprogram ] [line 20] [def] [global_namespace_function] +// CHECK: [[NS]] = {{.*}}, metadata [[FILE]], null, metadata !"ns", {{.*}} ; [ DW_TAG_namespace ] [ns] [line 19] -// CHECK: metadata !22, metadata !"global_function"{{.*}} [ DW_TAG_subprogram ] [line 17] [def] [global_function] -// CHECK: !22 = {{.*}} [ DW_TAG_file_type ] - -// CHECK: metadata !24, metadata !"global_namespace_function"{{.*}} [ DW_TAG_subprogram ] [line 20] [def] [global_namespace_function] -// CHECK: !24 = {{.*}} [ DW_TAG_namespace ] [ns] [line 19] |
