[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

Owen Anderson resistor at mac.com
Sat May 20 16:29:07 PDT 2006



Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.67 -> 1.68
---
Log message:

Make TargetData strings less redundant.


---
Diffs of the changes:  (+0 -7)

 TargetData.cpp |    7 -------
 1 files changed, 7 deletions(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.67 llvm/lib/Target/TargetData.cpp:1.68
--- llvm/lib/Target/TargetData.cpp:1.67	Sat May 20 16:16:59 2006
+++ llvm/lib/Target/TargetData.cpp	Sat May 20 18:28:54 2006
@@ -157,31 +157,24 @@
       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:






More information about the llvm-commits mailing list