summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-05-20 23:28:54 +0000
committerOwen Anderson <resistor@mac.com>2006-05-20 23:28:54 +0000
commit80b1b4d41ec96fbbc32fb1075e3ec11be130f87a (patch)
tree18c03979bb95bee54c5e6a4401d79cb9049b3b5e /llvm/lib/Target/TargetData.cpp
parentd0622b689421852aa8b4a0962821d6cd5bfc0f87 (diff)
downloadbcm5719-llvm-80b1b4d41ec96fbbc32fb1075e3ec11be130f87a.tar.gz
bcm5719-llvm-80b1b4d41ec96fbbc32fb1075e3ec11be130f87a.zip
Make TargetData strings less redundant.
llvm-svn: 28423
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r--llvm/lib/Target/TargetData.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index b94cb2de98d..f7b7b4c3e5b 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/lib/Target/TargetData.cpp
@@ -157,31 +157,24 @@ TargetData::TargetData(const std::string &TargetName,
PointerAlignment = atoi(getToken(token,":").c_str()) / 8;
break;
case 'd':
- getToken(token,":"); //Ignore the size
DoubleAlignment = atoi(getToken(token,":").c_str()) / 8;
break;
case 'f':
- getToken(token, ":"); //Ignore the size
FloatAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'l':
- getToken(token, ":"); //Ignore the size
LongAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'i':
- getToken(token, ":"); //Ignore the size
IntAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 's':
- getToken(token, ":"); //Ignore the size
ShortAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'b':
- getToken(token, ":"); //Ignore the size
ByteAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'B':
- getToken(token, ":"); //Ignore the size
BoolAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
default:
OpenPOWER on IntegriCloud