зеркало из https://github.com/microsoft/clang-1.git
Tidy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
c0b6dbe00f
Коммит
16098f3660
|
@ -54,7 +54,8 @@ llvm::Value *CodeGenFunction::EmitObjCStringLiteral(const ObjCStringLiteral *E)
|
|||
/// EmitObjCNumericLiteral - This routine generates code for
|
||||
/// the appropriate +[NSNumber numberWith<Type>:] method.
|
||||
///
|
||||
llvm::Value *CodeGenFunction::EmitObjCNumericLiteral(const ObjCNumericLiteral *E) {
|
||||
llvm::Value *
|
||||
CodeGenFunction::EmitObjCNumericLiteral(const ObjCNumericLiteral *E) {
|
||||
// Generate the correct selector for this literal's concrete type.
|
||||
const Expr *NL = E->getNumber();
|
||||
// Get the method.
|
||||
|
@ -165,11 +166,12 @@ llvm::Value *CodeGenFunction::EmitObjCCollectionLiteral(const Expr *E,
|
|||
llvm::Value *Receiver = Runtime.GetClass(Builder, Class);
|
||||
|
||||
// Generate the message send.
|
||||
RValue result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
|
||||
MethodWithObjects->getResultType(),
|
||||
Sel,
|
||||
Receiver, Args, Class,
|
||||
MethodWithObjects);
|
||||
RValue result
|
||||
= Runtime.GenerateMessageSend(*this, ReturnValueSlot(),
|
||||
MethodWithObjects->getResultType(),
|
||||
Sel,
|
||||
Receiver, Args, Class,
|
||||
MethodWithObjects);
|
||||
return Builder.CreateBitCast(result.getScalarVal(),
|
||||
ConvertType(E->getType()));
|
||||
}
|
||||
|
@ -450,7 +452,7 @@ void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
|
|||
args.push_back(OMD->getCmdDecl());
|
||||
|
||||
for (ObjCMethodDecl::param_const_iterator PI = OMD->param_begin(),
|
||||
E = OMD->param_end(); PI != E; ++PI)
|
||||
E = OMD->param_end(); PI != E; ++PI)
|
||||
args.push_back(*PI);
|
||||
|
||||
CurGD = OMD;
|
||||
|
@ -1091,8 +1093,9 @@ CodeGenFunction::generateObjCSetterBody(const ObjCImplementationDecl *classImpl,
|
|||
if (UseOptimizedSetter(CGM)) {
|
||||
// 10.8 code and GC is off
|
||||
setOptimizedPropertyFn =
|
||||
CGM.getObjCRuntime().GetOptimizedPropertySetFunction(strategy.isAtomic(),
|
||||
strategy.isCopy());
|
||||
CGM.getObjCRuntime()
|
||||
.GetOptimizedPropertySetFunction(strategy.isAtomic(),
|
||||
strategy.isCopy());
|
||||
if (!setOptimizedPropertyFn) {
|
||||
CGM.ErrorUnsupported(propImpl, "Obj-C optimized setter - NYI");
|
||||
return;
|
||||
|
@ -2706,7 +2709,7 @@ CodeGenFunction::EmitARCStoreAutoreleasing(const BinaryOperator *e) {
|
|||
}
|
||||
|
||||
void CodeGenFunction::EmitObjCAutoreleasePoolStmt(
|
||||
const ObjCAutoreleasePoolStmt &ARPS) {
|
||||
const ObjCAutoreleasePoolStmt &ARPS) {
|
||||
const Stmt *subStmt = ARPS.getSubStmt();
|
||||
const CompoundStmt &S = cast<CompoundStmt>(*subStmt);
|
||||
|
||||
|
@ -2803,7 +2806,8 @@ CodeGenFunction::GenerateObjCAtomicSetterCopyHelperFunction(
|
|||
|
||||
llvm::Function *Fn =
|
||||
llvm::Function::Create(LTy, llvm::GlobalValue::InternalLinkage,
|
||||
"__assign_helper_atomic_property_", &CGM.getModule());
|
||||
"__assign_helper_atomic_property_",
|
||||
&CGM.getModule());
|
||||
|
||||
if (CGM.getModuleDebugInfo())
|
||||
DebugInfo = CGM.getModuleDebugInfo();
|
||||
|
@ -2922,13 +2926,15 @@ CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction(
|
|||
CXXConstExpr->hadMultipleCandidates(),
|
||||
CXXConstExpr->isListInitialization(),
|
||||
CXXConstExpr->requiresZeroInitialization(),
|
||||
CXXConstExpr->getConstructionKind(), SourceRange());
|
||||
CXXConstExpr->getConstructionKind(),
|
||||
SourceRange());
|
||||
|
||||
DeclRefExpr DstExpr(&dstDecl, false, DestTy,
|
||||
VK_RValue, SourceLocation());
|
||||
|
||||
RValue DV = EmitAnyExpr(&DstExpr);
|
||||
CharUnits Alignment = getContext().getTypeAlignInChars(TheCXXConstructExpr->getType());
|
||||
CharUnits Alignment
|
||||
= getContext().getTypeAlignInChars(TheCXXConstructExpr->getType());
|
||||
EmitAggExpr(TheCXXConstructExpr,
|
||||
AggValueSlot::forAddr(DV.getScalarVal(), Alignment, Qualifiers(),
|
||||
AggValueSlot::IsDestructed,
|
||||
|
|
Загрузка…
Ссылка в новой задаче