diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-19 22:20:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-19 22:20:07 +0000 |
commit | a0d30a9977ff53a91ac0096e75728805cccbbdef (patch) | |
tree | 43ffba346c5c0acdf889d0e2ea42e5fb839fa275 | |
parent | a064b0c476de0b64f6877b88e6b3d23ce0681aae (diff) | |
download | bcm5719-llvm-a0d30a9977ff53a91ac0096e75728805cccbbdef.tar.gz bcm5719-llvm-a0d30a9977ff53a91ac0096e75728805cccbbdef.zip |
Reduce indentation. No functionality change.
llvm-svn: 211318
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index f4b5caeeff1..e21a82373f7 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/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; |