diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2009-12-18 15:24:05 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2009-12-18 15:24:05 +0000 |
commit | acfe6aa83a1a841f9ba84cb214c5c7cae4a28473 (patch) | |
tree | 109908096f1adf9dd6fbc6e8724be55469952cf8 /clang/lib | |
parent | 0087bc851c8f714d6d6d3f7f6d99ca4167b391b9 (diff) | |
download | bcm5719-llvm-acfe6aa83a1a841f9ba84cb214c5c7cae4a28473.tar.gz bcm5719-llvm-acfe6aa83a1a841f9ba84cb214c5c7cae4a28473.zip |
Rename getByteSize() and getTypeSizeInBytes() in ASTContext to getCharWidth()
and getTypeSizeInChars() to reflect their basis in character type units, not
that of a possibly independent architecture-specific byte.
llvm-svn: 91688
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 14ee90d4693..3db3eefc1e6 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -471,7 +471,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { const llvm::Type *IntPtr = llvm::IntegerType::get(VMContext, LLVMPointerWidth); llvm::Value *SizeVal = - llvm::ConstantInt::get(IntPtr, getContext().getTypeSizeInBytes(Ty)); + llvm::ConstantInt::get(IntPtr, getContext().getTypeSizeInChars(Ty)); const llvm::Type *BP = llvm::Type::getInt8PtrTy(VMContext); if (Loc->getType() != BP) |