From 474f2238604c3e1c81e2094acf53726e43c96fd3 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 19 Jun 2014 22:20:07 +0000 Subject: [PATCH] Reduce indentation. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211318 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gold/gold-plugin.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index f4b5caeeff1..e21a82373f7 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -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; -- 2.34.1