[cfe-commits] r170408 - /cfe/trunk/lib/CodeGen/CGObjC.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 17 20:29:34 PST 2012
Author: rafael
Date: Mon Dec 17 22:29:34 2012
New Revision: 170408
URL: http://llvm.org/viewvc/llvm-project?rev=170408&view=rev
Log:
Inline hasAtomicCopyHelperAPI.
Modified:
cfe/trunk/lib/CodeGen/CGObjC.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=170408&r1=170407&r2=170408&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Mon Dec 17 22:29:34 2012
@@ -2799,10 +2799,6 @@
Builder.CreateCall(extender, object)->setDoesNotThrow();
}
-static bool hasAtomicCopyHelperAPI(const ObjCRuntime &runtime) {
- return runtime.hasAtomicCopyHelper();
-}
-
/// GenerateObjCAtomicSetterCopyHelperFunction - Given a c++ object type with
/// non-trivial copy assignment function, produce following helper function.
/// static void copyHelper(Ty *dest, const Ty *source) { *dest = *source; }
@@ -2812,7 +2808,7 @@
const ObjCPropertyImplDecl *PID) {
// FIXME. This api is for NeXt runtime only for now.
if (!getLangOpts().CPlusPlus ||
- !hasAtomicCopyHelperAPI(getLangOpts().ObjCRuntime))
+ !getLangOpts().ObjCRuntime.hasAtomicCopyHelper())
return 0;
QualType Ty = PID->getPropertyIvarDecl()->getType();
if (!Ty->isRecordType())
@@ -2896,7 +2892,7 @@
const ObjCPropertyImplDecl *PID) {
// FIXME. This api is for NeXt runtime only for now.
if (!getLangOpts().CPlusPlus ||
- !hasAtomicCopyHelperAPI(getLangOpts().ObjCRuntime))
+ !getLangOpts().ObjCRuntime.hasAtomicCopyHelper())
return 0;
const ObjCPropertyDecl *PD = PID->getPropertyDecl();
QualType Ty = PD->getType();
More information about the cfe-commits
mailing list