[llvm-commits] [llvm] r53859 - /llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp

Anton Korobeynikov asl at math.spbu.ru
Mon Jul 21 11:29:23 PDT 2008


Author: asl
Date: Mon Jul 21 13:29:23 2008
New Revision: 53859

URL: http://llvm.org/viewvc/llvm-project?rev=53859&view=rev
Log:
Use better variable names

Modified:
    llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp?rev=53859&r1=53858&r2=53859&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp Mon Jul 21 13:29:23 2008
@@ -112,13 +112,13 @@
   const TargetData *TD = ETM->getTargetData();
   Constant *C = cast<GlobalVariable>(GV)->getInitializer();
   const ConstantArray *CVA = cast<ConstantArray>(C);
-  const Type *Type = CVA->getType()->getElementType();
+  const Type *Ty = CVA->getType()->getElementType();
 
-  unsigned Size = TD->getABITypeSize(Type);
+  unsigned Size = TD->getABITypeSize(Ty);
   if (Size <= 16) {
     // We also need alignment here
     const TargetData *TD = ETM->getTargetData();
-    unsigned Align = TD->getPrefTypeAlignment(Type);
+    unsigned Align = TD->getPrefTypeAlignment(Ty);
     if (Align < Size)
       Align = Size;
 





More information about the llvm-commits mailing list