r233820 - Remove comdats from inlinehint.cpp to pass test on Darwin
Reid Kleckner
reid at kleckner.net
Wed Apr 1 09:45:17 PDT 2015
Author: rnk
Date: Wed Apr 1 11:45:17 2015
New Revision: 233820
URL: http://llvm.org/viewvc/llvm-project?rev=233820&view=rev
Log:
Remove comdats from inlinehint.cpp to pass test on Darwin
Modified:
cfe/trunk/test/CodeGenCXX/inlinehint.cpp
Modified: cfe/trunk/test/CodeGenCXX/inlinehint.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/inlinehint.cpp?rev=233820&r1=233819&r2=233820&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/inlinehint.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/inlinehint.cpp Wed Apr 1 11:45:17 2015
@@ -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();
More information about the cfe-commits
mailing list