[llvm] r211318 - Reduce indentation. No functionality change.

Rafael Espindola rafael.espindola at gmail.com
Thu Jun 19 15:20:07 PDT 2014


Author: rafael
Date: Thu Jun 19 17:20:07 2014
New Revision: 211318

URL: http://llvm.org/viewvc/llvm-project?rev=211318&view=rev
Log:
Reduce indentation. No functionality change.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=211318&r1=211317&r2=211318&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Thu Jun 19 17:20:07 2014
@@ -239,26 +239,26 @@ ld_plugin_status onload(ld_plugin_tv *tv
     return LDPS_ERR;
   }
 
-  if (RegisteredAllSymbolsRead) {
-    InitializeAllTargetInfos();
-    InitializeAllTargets();
-    InitializeAllTargetMCs();
-    InitializeAllAsmParsers();
-    InitializeAllAsmPrinters();
-    InitializeAllDisassemblers();
-    TargetOpts = InitTargetOptionsFromCodeGenFlags();
-    CodeGen = new LTOCodeGenerator();
-    CodeGen->setTargetOptions(TargetOpts);
-    if (MAttrs.size()) {
-      std::string Attrs;
-      for (unsigned I = 0; I < MAttrs.size(); ++I) {
-        if (I > 0)
-          Attrs.append(",");
-        Attrs.append(MAttrs[I]);
-      }
+  if (!RegisteredAllSymbolsRead)
+    return LDPS_OK;
 
-      CodeGen->setAttr(Attrs.c_str());
+  InitializeAllTargetInfos();
+  InitializeAllTargets();
+  InitializeAllTargetMCs();
+  InitializeAllAsmParsers();
+  InitializeAllAsmPrinters();
+  InitializeAllDisassemblers();
+  TargetOpts = InitTargetOptionsFromCodeGenFlags();
+  CodeGen = new LTOCodeGenerator();
+  CodeGen->setTargetOptions(TargetOpts);
+  if (MAttrs.size()) {
+    std::string Attrs;
+    for (unsigned I = 0; I < MAttrs.size(); ++I) {
+      if (I > 0)
+        Attrs.append(",");
+      Attrs.append(MAttrs[I]);
     }
+    CodeGen->setAttr(Attrs.c_str());
   }
 
   return LDPS_OK;





More information about the llvm-commits mailing list