summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-11 18:21:29 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-11 18:21:29 +0000
commit542964f55b2dce5703c9dd88496fde4f7ebf89b6 (patch)
tree07d5e88789ee8f5f61159e1ec2def506545fe52a /llvm/lib/Target/TargetData.cpp
parentbd23db9968ac7583431836ffcf9957f8e38c1aea (diff)
downloadbcm5719-llvm-542964f55b2dce5703c9dd88496fde4f7ebf89b6.tar.gz
bcm5719-llvm-542964f55b2dce5703c9dd88496fde4f7ebf89b6.zip
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
llvm-svn: 33076
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r--llvm/lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index db0ea2cb4c6..59dc0dca50a 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/lib/Target/TargetData.cpp
@@ -241,7 +241,7 @@ static inline void getTypeInfo(const Type *Ty, const TargetData *TD,
uint64_t &Size, unsigned char &Alignment) {
assert(Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!");
switch (Ty->getTypeID()) {
- case Type::BoolTyID: Size = 1; Alignment = TD->getBoolAlignment(); return;
+ case Type::Int1TyID: Size = 1; Alignment = TD->getBoolAlignment(); return;
case Type::VoidTyID:
case Type::Int8TyID: Size = 1; Alignment = TD->getByteAlignment(); return;
case Type::Int16TyID: Size = 2; Alignment = TD->getShortAlignment(); return;
OpenPOWER on IntegriCloud