summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-05 03:39:29 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-05 03:39:29 +0000
commit98db356cc18e142edc3236cc7da7675209d1403d (patch)
tree051dd1962d7f3a4f39d0264dc665defc44d7856b /clang/test/CodeGenCXX/debug-info.cpp
parent7088e3470c12ffc67958f25068bd989f2d0a616b (diff)
downloadbcm5719-llvm-98db356cc18e142edc3236cc7da7675209d1403d.tar.gz
bcm5719-llvm-98db356cc18e142edc3236cc7da7675209d1403d.zip
Revert "DebugInfo: Place global constants in their appropriate context."
This reverts commit r205655. Breaks the compiler-rt build with an assertion failure in LLVM... reverting while I investigate. llvm-svn: 205664
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/test/CodeGenCXX/debug-info.cpp b/clang/test/CodeGenCXX/debug-info.cpp
index 26d647aa356..7c89dfc04ce 100644
--- a/clang/test/CodeGenCXX/debug-info.cpp
+++ b/clang/test/CodeGenCXX/debug-info.cpp
@@ -83,16 +83,9 @@ foo func(foo f) {
// CHECK: [[FUNC:![0-9]*]] = {{.*}} metadata !"_ZN7pr147634funcENS_3fooE", i32 {{[0-9]*}}, metadata [[FUNC_TYPE:![0-9]*]], {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [def] [func]
}
-namespace local_const {
-const wchar_t lc_c = L'x';
-}
-
-// CHECK: metadata [[LOCAL_CONST:![0-9]*]], metadata !"lc_c", {{.*}}; [ DW_TAG_variable ] [lc_c]
-// CHECK: [[LOCAL_CONST]] = {{.*}}; [ DW_TAG_namespace ] [local_const]
-
void foo() {
const wchar_t c = L'x';
- wchar_t d = c + local_const::lc_c;
+ wchar_t d = c;
}
// CHECK-NOT: ; [ DW_TAG_variable ] [c]
OpenPOWER on IntegriCloud