Use better variable names
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 21 Jul 2008 18:29:23 +0000 (18:29 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 21 Jul 2008 18:29:23 +0000 (18:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53859 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ELFTargetAsmInfo.cpp

index d2314168bdc5f41826fae2ce493b39ae55cc5c9b..eb3608dcaa5d4776e52572730bc8054841990499 100644 (file)
@@ -112,13 +112,13 @@ ELFTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
   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;