summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2010-01-27 17:10:57 +0000
committerKen Dyck <ken.dyck@onsemi.com>2010-01-27 17:10:57 +0000
commit160146eba2e08602c8e066d6752c792a64afcb6e (patch)
tree1d1ad2e6436a6d91c628aa6c5168d4c653f1f5d0 /clang/lib/CodeGen/CodeGenModule.cpp
parentb925f7707e82b830719220e081c3f11127173d19 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud