Remove comdats from inlinehint.cpp to pass test on Darwin
llvm-svn: 233820
This commit is contained in:
parent
7510c09234
commit
e20ce1fcbf
|
|
@ -1,16 +1,17 @@
|
|||
// RUN: %clang_cc1 -triple %itanium_abi_triple %s -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-macosx %s -emit-llvm -o - | FileCheck %s
|
||||
|
||||
inline void InlineFunc() {}
|
||||
// CHECK: define linkonce_odr void @_Z10InlineFuncv() #[[INLINEHINTATTR:[0-9]+]] comdat {
|
||||
// CHECK: define linkonce_odr void @_Z10InlineFuncv() #[[INLINEHINTATTR:[0-9]+]]
|
||||
|
||||
struct MyClass {
|
||||
static void InlineStaticMethod();
|
||||
void InlineInstanceMethod();
|
||||
};
|
||||
inline void MyClass::InlineStaticMethod() {}
|
||||
// CHECK: define linkonce_odr void @_ZN7MyClass18InlineStaticMethodEv() #[[INLINEHINTATTR]] comdat
|
||||
// CHECK: define linkonce_odr void @_ZN7MyClass18InlineStaticMethodEv() #[[INLINEHINTATTR]]
|
||||
inline void MyClass::InlineInstanceMethod() {}
|
||||
// CHECK: define linkonce_odr void @_ZN7MyClass20InlineInstanceMethodEv(%struct.MyClass* %this) #[[INLINEHINTATTR]] comdat
|
||||
// CHECK: define linkonce_odr void @_ZN7MyClass20InlineInstanceMethodEv(%struct.MyClass* %this) #[[INLINEHINTATTR]]
|
||||
|
||||
template <typename T>
|
||||
struct MyTemplate {
|
||||
|
|
@ -18,9 +19,9 @@ struct MyTemplate {
|
|||
void InlineInstanceMethod();
|
||||
};
|
||||
template <typename T> inline void MyTemplate<T>::InlineStaticMethod() {}
|
||||
// CHECK: define linkonce_odr void @_ZN10MyTemplateIiE18InlineStaticMethodEv() #[[INLINEHINTATTR]] comdat
|
||||
// CHECK: define linkonce_odr void @_ZN10MyTemplateIiE18InlineStaticMethodEv() #[[INLINEHINTATTR]]
|
||||
template <typename T> inline void MyTemplate<T>::InlineInstanceMethod() {}
|
||||
// CHECK: define linkonce_odr void @_ZN10MyTemplateIiE20InlineInstanceMethodEv(%struct.MyTemplate* %this) #[[INLINEHINTATTR]] comdat
|
||||
// CHECK: define linkonce_odr void @_ZN10MyTemplateIiE20InlineInstanceMethodEv(%struct.MyTemplate* %this) #[[INLINEHINTATTR]]
|
||||
|
||||
void UseThem() {
|
||||
InlineFunc();
|
||||
|
|
|
|||
Loading…
Reference in New Issue