Change the return type of ASTContext::getDeclAlignInBytes() to CharUnits and,

now that the "InBytes" part of the name is implied by the return type, rename
it to getDeclAlign().

llvm-svn: 94681
This commit is contained in:
Ken Dyck
2010-01-27 17:10:57 +00:00
parent b925f7707e
commit 160146eba2
7 changed files with 49 additions and 38 deletions

View File

@@ -1065,7 +1065,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
if (!NonConstInit && DeclIsConstantGlobal(Context, D))
GV->setConstant(true);
GV->setAlignment(getContext().getDeclAlignInBytes(D));
GV->setAlignment(getContext().getDeclAlign(D).getQuantity());
// Set the llvm linkage type as appropriate.
GVALinkage Linkage = GetLinkageForVariable(getContext(), D);