Cleanup
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 28 Jun 2008 11:08:44 +0000 (11:08 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 28 Jun 2008 11:08:44 +0000 (11:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52861 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ATTAsmPrinter.cpp

index 69914e57c24a365b3afa163bb0fea7fa899502d0..602fa51e3ae21bc79038819e5b9b32542f8d8c86 100644 (file)
@@ -982,15 +982,13 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) {
   }
 
   // Output linker support code for dllexported globals
-  if (!DLLExportedGVs.empty()) {
+  if (!DLLExportedGVs.empty())
     SwitchToDataSection(".section .drectve");
-  }
 
   for (StringSet<>::iterator i = DLLExportedGVs.begin(),
          e = DLLExportedGVs.end();
-         i != e; ++i) {
+         i != e; ++i)
     O << "\t.ascii \" -export:" << i->getKeyData() << ",data\"\n";
-  }
 
   if (!DLLExportedFns.empty()) {
     SwitchToDataSection(".section .drectve");
@@ -998,9 +996,8 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) {
 
   for (StringSet<>::iterator i = DLLExportedFns.begin(),
          e = DLLExportedFns.end();
-         i != e; ++i) {
+         i != e; ++i)
     O << "\t.ascii \" -export:" << i->getKeyData() << "\"\n";
-  }
 
   if (Subtarget->isTargetDarwin()) {
     SwitchToDataSection("");