[llvm-commits] [llvm] r76490 - /llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp

Chris Lattner sabre at nondot.org
Mon Jul 20 15:23:49 PDT 2009


Author: lattner
Date: Mon Jul 20 17:23:48 2009
New Revision: 76490

URL: http://llvm.org/viewvc/llvm-project?rev=76490&view=rev
Log:
clean up some formatting, indent by 2 instead of 4.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp?rev=76490&r1=76489&r2=76490&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp Mon Jul 20 17:23:48 2009
@@ -241,23 +241,14 @@
 }
 
 PIC16TargetAsmInfo::~PIC16TargetAsmInfo() {
-  
-  for (unsigned i = 0; i < BSSSections.size(); i++) {
-      delete BSSSections[i]; 
-  }
-
-  for (unsigned i = 0; i < IDATASections.size(); i++) {
-      delete IDATASections[i]; 
-  }
-
-  for (unsigned i = 0; i < AutosSections.size(); i++) {
-      delete AutosSections[i]; 
-  }
-
-  for (unsigned i = 0; i < ROSections.size(); i++) {
-      delete ROSections[i];
-  }
-
+  for (unsigned i = 0; i < BSSSections.size(); i++)
+    delete BSSSections[i]; 
+  for (unsigned i = 0; i < IDATASections.size(); i++)
+    delete IDATASections[i]; 
+  for (unsigned i = 0; i < AutosSections.size(); i++)
+    delete AutosSections[i]; 
+  for (unsigned i = 0; i < ROSections.size(); i++)
+    delete ROSections[i];
   delete ExternalVarDecls;
   delete ExternalVarDefs;
 }
@@ -276,8 +267,7 @@
     if (SectName.compare(0, AddrStr.length(), AddrStr) == 0) {
       std::string SectAddr = SectName.substr(AddrStr.length());
       S = CreateSectionForGlobal(GV, SectAddr);
-    }
-    else {
+    } else {
       S = CreateSectionForGlobal(GV);
     } 
   } else {





More information about the llvm-commits mailing list