diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-27 17:10:57 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-27 17:10:57 +0000 |
commit | 160146eba2e08602c8e066d6752c792a64afcb6e (patch) | |
tree | 1d1ad2e6436a6d91c628aa6c5168d4c653f1f5d0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b925f7707e82b830719220e081c3f11127173d19 (diff) | |
download | bcm5719-llvm-160146eba2e08602c8e066d6752c792a64afcb6e.tar.gz bcm5719-llvm-160146eba2e08602c8e066d6752c792a64afcb6e.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index dc66f04c5ec..1773b41835e 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -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); |