Fix a parsing bug that caused 7 llvm-test regressions on PPC last night.

I'm suprised it didn't cause more!

llvm-svn: 28421
This commit is contained in:
Chris Lattner 2006-05-20 21:16:59 +00:00
parent 401049ce33
commit 482fb65144
1 changed files with 7 additions and 7 deletions

View File

@ -157,31 +157,31 @@ TargetData::TargetData(const std::string &TargetName,
PointerAlignment = atoi(getToken(token,":").c_str()) / 8;
break;
case 'd':
token = getToken(token,":"); //Ignore the size
getToken(token,":"); //Ignore the size
DoubleAlignment = atoi(getToken(token,":").c_str()) / 8;
break;
case 'f':
token = getToken(token, ":"); //Ignore the size
getToken(token, ":"); //Ignore the size
FloatAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'l':
token = getToken(token, ":"); //Ignore the size
getToken(token, ":"); //Ignore the size
LongAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'i':
token = getToken(token, ":"); //Ignore the size
getToken(token, ":"); //Ignore the size
IntAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 's':
token = getToken(token, ":"); //Ignore the size
getToken(token, ":"); //Ignore the size
ShortAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'b':
token = getToken(token, ":"); //Ignore the size
getToken(token, ":"); //Ignore the size
ByteAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
case 'B':
token = getToken(token, ":"); //Ignore the size
getToken(token, ":"); //Ignore the size
BoolAlignment = atoi(getToken(token, ":").c_str()) / 8;
break;
default: