diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-09-11 17:23:03 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-09-11 17:23:03 +0000 |
commit | ca8441810f1e5510cfffb6e02a9e7ef33db27306 (patch) | |
tree | 125c72b3fc4fe4da21c3d0e460c392801819dc54 /clang/test/Modules | |
parent | 4df9d8128b98e8b1af087fe21da3d60bd6fe78a6 (diff) | |
download | bcm5719-llvm-ca8441810f1e5510cfffb6e02a9e7ef33db27306.tar.gz bcm5719-llvm-ca8441810f1e5510cfffb6e02a9e7ef33db27306.zip |
Revert "Module Debugging: Emit forward declarations for types that are defined in"
This reverts commit r247369 to facilitate reviewing of the following patch.
llvm-svn: 247431
Diffstat (limited to 'clang/test/Modules')
-rw-r--r-- | clang/test/Modules/ExtDebugInfo.cpp | 77 | ||||
-rw-r--r-- | clang/test/Modules/ExtDebugInfo.m | 29 |
2 files changed, 0 insertions, 106 deletions
diff --git a/clang/test/Modules/ExtDebugInfo.cpp b/clang/test/Modules/ExtDebugInfo.cpp deleted file mode 100644 index 3b879ef2bbf..00000000000 --- a/clang/test/Modules/ExtDebugInfo.cpp +++ /dev/null @@ -1,77 +0,0 @@ -// RUN: rm -rf %t -// Test that only forward declarations are emitted for types dfined in modules. - -// Modules: -// RUN: %clang_cc1 -x objective-c++ -std=c++11 -g -dwarf-ext-refs -fmodules \ -// RUN: -triple %itanium_abi_triple \ -// RUN: -fmodule-format=obj -fimplicit-module-maps -DMODULES \ -// RUN: -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o %t-mod.ll -// RUN: cat %t-mod.ll | FileCheck %s - -// PCH: -// RUN: %clang_cc1 -x c++ -std=c++11 -fmodule-format=obj -emit-pch -I%S/Inputs \ -// RUN: -triple %itanium_abi_triple \ -// RUN: -o %t.pch %S/Inputs/DebugCXX.h -// RUN: %clang_cc1 -std=c++11 -g -dwarf-ext-refs -fmodule-format=obj \ -// RUN: -triple %itanium_abi_triple \ -// RUN: -include-pch %t.pch %s -emit-llvm -o %t-pch.ll %s -// RUN: cat %t-pch.ll | FileCheck %s - -#ifdef MODULES -@import DebugCXX; -#endif - -using DebugCXX::Struct; - -Struct s; -DebugCXX::Enum e; -DebugCXX::Template<long> implicitTemplate; -DebugCXX::Template<int> explicitTemplate; -DebugCXX::FloatInstatiation typedefTemplate; -int Struct::static_member = -1; -enum { - e3 = -1 -} conflicting_uid = e3; -auto anon_enum = DebugCXX::e2; -char _anchor = anon_enum + conflicting_uid; - -// CHECK: ![[ANON_ENUM:[0-9]+]] = !DICompositeType(tag: DW_TAG_enumeration_type -// CHECK-SAME: scope: ![[MOD:[0-9]+]], -// CHECK-SAME: {{.*}}line: 16, {{.*}}, elements: ![[EE:[0-9]+]]) - -// CHECK: ![[NS:.*]] = !DINamespace(name: "DebugCXX", scope: ![[MOD:[0-9]+]], -// CHECK: ![[MOD]] = !DIModule(scope: null, name: {{.*}}DebugCXX - -// CHECK: ![[EE]] = !{![[E2:[0-9]+]]} -// CHECK: ![[E2]] = !DIEnumerator(name: "e2", value: 50) - -// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Struct", -// CHECK-SAME: scope: ![[NS]], -// CHECK-SAME: flags: DIFlagFwdDecl, -// CHECK-SAME: identifier: "_ZTSN8DebugCXX6StructE") - -// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Enum", -// CHECK-SAME: scope: ![[NS]], -// CHECK-SAME: flags: DIFlagFwdDecl, -// CHECK-SAME: identifier: "_ZTSN8DebugCXX4EnumE") - -// CHECK: !DICompositeType(tag: DW_TAG_class_type, - -// CHECK: !DICompositeType(tag: DW_TAG_class_type, -// CHECK-SAME: name: "Template<int, DebugCXX::traits<int> >", -// CHECK-SAME: scope: ![[NS]], -// CHECK-SAME: flags: DIFlagFwdDecl, -// CHECK-SAME: identifier: "_ZTSN8DebugCXX8TemplateIiNS_6traitsIiEEEE") - -// CHECK: !DICompositeType(tag: DW_TAG_class_type, -// CHECK-SAME: name: "Template<float, DebugCXX::traits<float> >", -// CHECK-SAME: scope: ![[NS]], -// CHECK-SAME: flags: DIFlagFwdDecl, -// CHECK-SAME: identifier: "_ZTSN8DebugCXX8TemplateIfNS_6traitsIfEEEE") - -// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "static_member", -// CHECK-SAME: scope: !"_ZTSN8DebugCXX6StructE" - -// CHECK: !DIGlobalVariable(name: "anon_enum", {{.*}}, type: ![[ANON_ENUM]] - -// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !0, entity: !"_ZTSN8DebugCXX6StructE", line: [[@LINE-53]]) diff --git a/clang/test/Modules/ExtDebugInfo.m b/clang/test/Modules/ExtDebugInfo.m deleted file mode 100644 index 6431a88677d..00000000000 --- a/clang/test/Modules/ExtDebugInfo.m +++ /dev/null @@ -1,29 +0,0 @@ -// RUN: rm -rf %t -// Test that only forward declarations are emitted for types dfined in modules. - -// Modules: -// RUN: %clang_cc1 -x objective-c -g -dwarf-ext-refs -fmodules \ -// RUN: -fmodule-format=obj -fimplicit-module-maps -DMODULES \ -// RUN: -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o %t-mod.ll -// RUN: cat %t-mod.ll | FileCheck %s - -// PCH: -// RUN: %clang_cc1 -x objective-c -fmodule-format=obj -emit-pch -I%S/Inputs \ -// RUN: -o %t.pch %S/Inputs/DebugObjC.h -// RUN: %clang_cc1 -x objective-c -g -dwarf-ext-refs -fmodule-format=obj \ -// RUN: -include-pch %t.pch %s -emit-llvm -o %t-pch.ll %s -// RUN: cat %t-pch.ll | FileCheck %s - -#ifdef MODULES -@import DebugObjC; -#endif - -int foo(ObjCClass *c) { - [c instanceMethodWithInt: 0]; - return [c property]; -} - -// CHECK: !DICompositeType(tag: DW_TAG_structure_type, -// CHECK-SAME: scope: ![[MOD:[0-9]+]], -// CHECK-SAME: flags: DIFlagFwdDecl) -// CHECK: ![[MOD]] = !DIModule(scope: null, name: {{.*}}DebugObjC |