|
|
3fc5264 |
Index: lib/Basic/IdentifierTable.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/Basic/IdentifierTable.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/Basic/IdentifierTable.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -390,7 +390,7 @@
|
|
|
3fc5264 |
unsigned Size = sizeof(MultiKeywordSelector) + nKeys*sizeof(IdentifierInfo *);
|
|
|
3fc5264 |
MultiKeywordSelector *SI =
|
|
|
3fc5264 |
(MultiKeywordSelector*)SelTabImpl.Allocator.Allocate(Size,
|
|
|
3fc5264 |
- llvm::alignof<MultiKeywordSelector>());
|
|
|
3fc5264 |
+ llvm::alignOf<MultiKeywordSelector>());
|
|
|
3fc5264 |
new (SI) MultiKeywordSelector(nKeys, IIV);
|
|
|
3fc5264 |
SelTabImpl.Table.InsertNode(SI, InsertPos);
|
|
|
3fc5264 |
return Selector(SI);
|
|
|
3fc5264 |
Index: lib/AST/ExprCXX.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/AST/ExprCXX.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/AST/ExprCXX.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -233,7 +233,7 @@
|
|
|
3fc5264 |
if (NumTemplateArgs != 0)
|
|
|
3fc5264 |
size += ExplicitTemplateArgumentList::sizeFor(NumTemplateArgs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(size, llvm::alignof<UnresolvedLookupExpr>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedLookupExpr>());
|
|
|
3fc5264 |
UnresolvedLookupExpr *E = new (Mem) UnresolvedLookupExpr(EmptyShell());
|
|
|
3fc5264 |
E->HasExplicitTemplateArgs = NumTemplateArgs != 0;
|
|
|
3fc5264 |
return E;
|
|
|
3fc5264 |
@@ -261,7 +261,7 @@
|
|
|
3fc5264 |
if (NumResults) {
|
|
|
3fc5264 |
Results = static_cast<DeclAccessPair *>(
|
|
|
3fc5264 |
C.Allocate(sizeof(DeclAccessPair) * NumResults,
|
|
|
3fc5264 |
- llvm::alignof<DeclAccessPair>()));
|
|
|
3fc5264 |
+ llvm::alignOf<DeclAccessPair>()));
|
|
|
3fc5264 |
memcpy(Results, &*Begin.getIterator(),
|
|
|
3fc5264 |
NumResults * sizeof(DeclAccessPair));
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
@@ -737,7 +737,7 @@
|
|
|
3fc5264 |
if (TemplateArgs)
|
|
|
3fc5264 |
size += ExplicitTemplateArgumentList::sizeFor(*TemplateArgs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(size, llvm::alignof<CXXDependentScopeMemberExpr>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(size, llvm::alignOf<CXXDependentScopeMemberExpr>());
|
|
|
3fc5264 |
return new (Mem) CXXDependentScopeMemberExpr(C, Base, BaseType,
|
|
|
3fc5264 |
IsArrow, OperatorLoc,
|
|
|
3fc5264 |
Qualifier, QualifierRange,
|
|
|
3fc5264 |
@@ -756,7 +756,7 @@
|
|
|
3fc5264 |
|
|
|
3fc5264 |
std::size_t size = sizeof(CXXDependentScopeMemberExpr) +
|
|
|
3fc5264 |
ExplicitTemplateArgumentList::sizeFor(NumTemplateArgs);
|
|
|
3fc5264 |
- void *Mem = C.Allocate(size, llvm::alignof<CXXDependentScopeMemberExpr>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(size, llvm::alignOf<CXXDependentScopeMemberExpr>());
|
|
|
3fc5264 |
CXXDependentScopeMemberExpr *E
|
|
|
3fc5264 |
= new (Mem) CXXDependentScopeMemberExpr(C, 0, QualType(),
|
|
|
3fc5264 |
0, SourceLocation(), 0,
|
|
|
3fc5264 |
@@ -812,7 +812,7 @@
|
|
|
3fc5264 |
if (TemplateArgs)
|
|
|
3fc5264 |
size += ExplicitTemplateArgumentList::sizeFor(*TemplateArgs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(size, llvm::alignof<UnresolvedMemberExpr>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedMemberExpr>());
|
|
|
3fc5264 |
return new (Mem) UnresolvedMemberExpr(C,
|
|
|
3fc5264 |
Dependent ? C.DependentTy : C.OverloadTy,
|
|
|
3fc5264 |
Dependent, HasUnresolvedUsing, Base, BaseType,
|
|
|
3fc5264 |
@@ -826,7 +826,7 @@
|
|
|
3fc5264 |
if (NumTemplateArgs != 0)
|
|
|
3fc5264 |
size += ExplicitTemplateArgumentList::sizeFor(NumTemplateArgs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(size, llvm::alignof<UnresolvedMemberExpr>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedMemberExpr>());
|
|
|
3fc5264 |
UnresolvedMemberExpr *E = new (Mem) UnresolvedMemberExpr(EmptyShell());
|
|
|
3fc5264 |
E->HasExplicitTemplateArgs = NumTemplateArgs != 0;
|
|
|
3fc5264 |
return E;
|
|
|
3fc5264 |
Index: lib/AST/DeclObjC.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/AST/DeclObjC.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/AST/DeclObjC.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -711,7 +711,7 @@
|
|
|
3fc5264 |
void ObjCClassDecl::setClassList(ASTContext &C, ObjCInterfaceDecl*const*List,
|
|
|
3fc5264 |
const SourceLocation *Locs, unsigned Num) {
|
|
|
3fc5264 |
ForwardDecls = (ObjCClassRef*) C.Allocate(sizeof(ObjCClassRef)*Num,
|
|
|
3fc5264 |
- llvm::alignof<ObjCClassRef>());
|
|
|
3fc5264 |
+ llvm::alignOf<ObjCClassRef>());
|
|
|
3fc5264 |
for (unsigned i = 0; i < Num; ++i)
|
|
|
3fc5264 |
new (&ForwardDecls[i]) ObjCClassRef(List[i], Locs[i]);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
Index: lib/AST/Stmt.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/AST/Stmt.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/AST/Stmt.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -416,7 +416,7 @@
|
|
|
3fc5264 |
Stmt *atFinallyStmt) {
|
|
|
3fc5264 |
unsigned Size = sizeof(ObjCAtTryStmt) +
|
|
|
3fc5264 |
(1 + NumCatchStmts + (atFinallyStmt != 0)) * sizeof(Stmt *);
|
|
|
3fc5264 |
- void *Mem = Context.Allocate(Size, llvm::alignof<ObjCAtTryStmt>());
|
|
|
3fc5264 |
+ void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>());
|
|
|
3fc5264 |
return new (Mem) ObjCAtTryStmt(atTryLoc, atTryStmt, CatchStmts, NumCatchStmts,
|
|
|
3fc5264 |
atFinallyStmt);
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
@@ -426,7 +426,7 @@
|
|
|
3fc5264 |
bool HasFinally) {
|
|
|
3fc5264 |
unsigned Size = sizeof(ObjCAtTryStmt) +
|
|
|
3fc5264 |
(1 + NumCatchStmts + HasFinally) * sizeof(Stmt *);
|
|
|
3fc5264 |
- void *Mem = Context.Allocate(Size, llvm::alignof<ObjCAtTryStmt>());
|
|
|
3fc5264 |
+ void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>());
|
|
|
3fc5264 |
return new (Mem) ObjCAtTryStmt(EmptyShell(), NumCatchStmts, HasFinally);
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
|
|
|
3fc5264 |
@@ -448,7 +448,7 @@
|
|
|
3fc5264 |
std::size_t Size = sizeof(CXXTryStmt);
|
|
|
3fc5264 |
Size += ((numHandlers + 1) * sizeof(Stmt));
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(Size, llvm::alignof<CXXTryStmt>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>());
|
|
|
3fc5264 |
return new (Mem) CXXTryStmt(tryLoc, tryBlock, handlers, numHandlers);
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
|
|
|
3fc5264 |
@@ -457,7 +457,7 @@
|
|
|
3fc5264 |
std::size_t Size = sizeof(CXXTryStmt);
|
|
|
3fc5264 |
Size += ((numHandlers + 1) * sizeof(Stmt));
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(Size, llvm::alignof<CXXTryStmt>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>());
|
|
|
3fc5264 |
return new (Mem) CXXTryStmt(Empty, numHandlers);
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
|
|
|
3fc5264 |
Index: lib/AST/Expr.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/AST/Expr.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/AST/Expr.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -257,7 +257,7 @@
|
|
|
3fc5264 |
if (TemplateArgs)
|
|
|
3fc5264 |
Size += ExplicitTemplateArgumentList::sizeFor(*TemplateArgs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = Context.Allocate(Size, llvm::alignof<DeclRefExpr>());
|
|
|
3fc5264 |
+ void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>());
|
|
|
3fc5264 |
return new (Mem) DeclRefExpr(Qualifier, QualifierRange, D, NameInfo,
|
|
|
3fc5264 |
TemplateArgs, T);
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
@@ -271,7 +271,7 @@
|
|
|
3fc5264 |
if (NumTemplateArgs)
|
|
|
3fc5264 |
Size += ExplicitTemplateArgumentList::sizeFor(NumTemplateArgs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = Context.Allocate(Size, llvm::alignof<DeclRefExpr>());
|
|
|
3fc5264 |
+ void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>());
|
|
|
3fc5264 |
return new (Mem) DeclRefExpr(EmptyShell());
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
|
|
|
3fc5264 |
@@ -432,7 +432,7 @@
|
|
|
3fc5264 |
// any concatenated string tokens.
|
|
|
3fc5264 |
void *Mem = C.Allocate(sizeof(StringLiteral)+
|
|
|
3fc5264 |
sizeof(SourceLocation)*(NumStrs-1),
|
|
|
3fc5264 |
- llvm::alignof<StringLiteral>());
|
|
|
3fc5264 |
+ llvm::alignOf<StringLiteral>());
|
|
|
3fc5264 |
StringLiteral *SL = new (Mem) StringLiteral(Ty);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
// OPTIMIZE: could allocate this appended to the StringLiteral.
|
|
|
3fc5264 |
@@ -452,7 +452,7 @@
|
|
|
3fc5264 |
StringLiteral *StringLiteral::CreateEmpty(ASTContext &C, unsigned NumStrs) {
|
|
|
3fc5264 |
void *Mem = C.Allocate(sizeof(StringLiteral)+
|
|
|
3fc5264 |
sizeof(SourceLocation)*(NumStrs-1),
|
|
|
3fc5264 |
- llvm::alignof<StringLiteral>());
|
|
|
3fc5264 |
+ llvm::alignOf<StringLiteral>());
|
|
|
3fc5264 |
StringLiteral *SL = new (Mem) StringLiteral(QualType());
|
|
|
3fc5264 |
SL->StrData = 0;
|
|
|
3fc5264 |
SL->ByteLength = 0;
|
|
|
3fc5264 |
@@ -714,7 +714,7 @@
|
|
|
3fc5264 |
if (targs)
|
|
|
3fc5264 |
Size += ExplicitTemplateArgumentList::sizeFor(*targs);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
- void *Mem = C.Allocate(Size, llvm::alignof<MemberExpr>());
|
|
|
3fc5264 |
+ void *Mem = C.Allocate(Size, llvm::alignOf<MemberExpr>());
|
|
|
3fc5264 |
MemberExpr *E = new (Mem) MemberExpr(base, isarrow, memberdecl, nameinfo, ty);
|
|
|
3fc5264 |
|
|
|
3fc5264 |
if (hasQualOrFound) {
|
|
|
3fc5264 |
Index: lib/AST/DeclCXX.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/AST/DeclCXX.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/AST/DeclCXX.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -1057,7 +1057,7 @@
|
|
|
3fc5264 |
unsigned NumIndices) {
|
|
|
3fc5264 |
void *Mem = Context.Allocate(sizeof(CXXBaseOrMemberInitializer) +
|
|
|
3fc5264 |
sizeof(VarDecl *) * NumIndices,
|
|
|
3fc5264 |
- llvm::alignof<CXXBaseOrMemberInitializer>());
|
|
|
3fc5264 |
+ llvm::alignOf<CXXBaseOrMemberInitializer>());
|
|
|
3fc5264 |
return new (Mem) CXXBaseOrMemberInitializer(Context, Member, MemberLoc,
|
|
|
3fc5264 |
L, Init, R, Indices, NumIndices);
|
|
|
3fc5264 |
}
|
|
|
3fc5264 |
Index: lib/Lex/TokenLexer.cpp
|
|
|
3fc5264 |
===================================================================
|
|
|
3fc5264 |
--- lib/Lex/TokenLexer.cpp (revision 117774)
|
|
|
3fc5264 |
+++ lib/Lex/TokenLexer.cpp (revision 117775)
|
|
|
3fc5264 |
@@ -287,7 +287,7 @@
|
|
|
3fc5264 |
llvm::BumpPtrAllocator &Alloc = PP.getPreprocessorAllocator();
|
|
|
3fc5264 |
Token *Res =
|
|
|
3fc5264 |
static_cast<Token *>(Alloc.Allocate(sizeof(Token)*ResultToks.size(),
|
|
|
3fc5264 |
- llvm::alignof<Token>()));
|
|
|
3fc5264 |
+ llvm::alignOf<Token>()));
|
|
|
3fc5264 |
if (NumTokens)
|
|
|
3fc5264 |
memcpy(Res, &ResultToks[0], NumTokens*sizeof(Token));
|
|
|
3fc5264 |
Tokens = Res;
|