diff options
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 8 | ||||
-rw-r--r-- | llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 15 | ||||
-rw-r--r-- | llvm/tools/llvm-lto/llvm-lto.cpp | 14 |
3 files changed, 22 insertions, 15 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 5365b99efe3..ecf12f8b08f 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -385,7 +385,8 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file, // If we are doing ThinLTO compilation, don't need to process the symbols. // Later we simply build a combined index file after all files are claimed. - if (options::thinlto) return LDPS_OK; + if (options::thinlto) + return LDPS_OK; for (auto &Sym : Obj->symbols()) { uint32_t Symflags = Sym.getFlags(); @@ -602,8 +603,9 @@ static void freeSymName(ld_plugin_symbol &Sym) { Sym.comdat_key = nullptr; } -static std::unique_ptr<FunctionInfoIndex> getFunctionIndexForFile( - LLVMContext &Context, claimed_file &F, ld_plugin_input_file &Info) { +static std::unique_ptr<FunctionInfoIndex> +getFunctionIndexForFile(LLVMContext &Context, claimed_file &F, + ld_plugin_input_file &Info) { if (get_symbols(F.handle, F.syms.size(), &F.syms[0]) != LDPS_OK) message(LDPL_FATAL, "Failed to get symbol information"); diff --git a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index 56f61712926..3c82779ab1e 100644 --- a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp @@ -284,14 +284,16 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID, } case bitc::MODULE_STRTAB_BLOCK_ID: switch (CodeID) { - default: return nullptr; - STRINGIFY_CODE(MST_CODE, ENTRY) + default: + return nullptr; + STRINGIFY_CODE(MST_CODE, ENTRY) } case bitc::FUNCTION_SUMMARY_BLOCK_ID: switch (CodeID) { - default: return nullptr; - STRINGIFY_CODE(FS_CODE, PERMODULE_ENTRY) - STRINGIFY_CODE(FS_CODE, COMBINED_ENTRY) + default: + return nullptr; + STRINGIFY_CODE(FS_CODE, PERMODULE_ENTRY) + STRINGIFY_CODE(FS_CODE, COMBINED_ENTRY) } case bitc::METADATA_ATTACHMENT_ID: switch(CodeID) { @@ -534,7 +536,8 @@ static bool ParseBlock(BitstreamCursor &Stream, unsigned BlockID, } Str += (char)Record[j]; } - if (ArrayIsPrintable) outs() << " record string = '" << Str << "'"; + if (ArrayIsPrintable) + outs() << " record string = '" << Str << "'"; break; } } diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index b35384a0b35..cdfe97f4907 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -59,9 +59,9 @@ static cl::opt<bool> UseDiagnosticHandler("use-diagnostic-handler", cl::init(false), cl::desc("Use a diagnostic handler to test the handler interface")); -static cl::opt<bool> ThinLTO( - "thinlto", cl::init(false), - cl::desc("Only write combined global index for ThinLTO backends")); +static cl::opt<bool> + ThinLTO("thinlto", cl::init(false), + cl::desc("Only write combined global index for ThinLTO backends")); static cl::list<std::string> InputFilenames(cl::Positional, cl::OneOrMore, @@ -160,8 +160,9 @@ static int listSymbols(StringRef Command, const TargetOptions &Options) { /// Parse the function index out of an IR file and return the function /// index object if found, or nullptr if not. -static std::unique_ptr<FunctionInfoIndex> getFunctionIndexForFile( - StringRef Path, std::string &Error, LLVMContext &Context) { +static std::unique_ptr<FunctionInfoIndex> +getFunctionIndexForFile(StringRef Path, std::string &Error, + LLVMContext &Context) { std::unique_ptr<MemoryBuffer> Buffer; ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = MemoryBuffer::getFile(Path); @@ -238,7 +239,8 @@ int main(int argc, char **argv) { if (ListSymbolsOnly) return listSymbols(argv[0], Options); - if (ThinLTO) return createCombinedFunctionIndex(argv[0]); + if (ThinLTO) + return createCombinedFunctionIndex(argv[0]); unsigned BaseArg = 0; |