From 566a35a121098938923cbfd0d238c178bb204b30 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Mon, 4 Apr 2016 21:06:17 +0000 Subject: clang-format llvm-as.cpp (NFC) This reduces unrelated changes in other patches (such as D18763) when changes to this file are clang formatted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265346 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-as/llvm-as.cpp | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'tools/llvm-as') diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index 7e9500a6672..31010dbfac1 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -15,9 +15,9 @@ // //===----------------------------------------------------------------------===// -#include "llvm/IR/LLVMContext.h" #include "llvm/AsmParser/Parser.h" #include "llvm/Bitcode/ReaderWriter.h" +#include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/Verifier.h" #include "llvm/Support/CommandLine.h" @@ -31,18 +31,18 @@ #include using namespace llvm; -static cl::opt -InputFilename(cl::Positional, cl::desc(""), cl::init("-")); +static cl::opt InputFilename(cl::Positional, + cl::desc(""), + cl::init("-")); -static cl::opt -OutputFilename("o", cl::desc("Override output filename"), - cl::value_desc("filename")); +static cl::opt OutputFilename("o", + cl::desc("Override output filename"), + cl::value_desc("filename")); -static cl::opt -Force("f", cl::desc("Enable binary output on terminals")); +static cl::opt Force("f", cl::desc("Enable binary output on terminals")); -static cl::opt -DisableOutput("disable-output", cl::desc("Disable output"), cl::init(false)); +static cl::opt DisableOutput("disable-output", cl::desc("Disable output"), + cl::init(false)); static cl::opt EmitSummaryIndex("module-summary", cl::desc("Emit module summary index"), @@ -51,12 +51,12 @@ static cl::opt EmitSummaryIndex("module-summary", static cl::opt EmitModuleHash("module-hash", cl::desc("Emit module hash"), cl::init(false)); -static cl::opt -DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden); +static cl::opt DumpAsm("d", cl::desc("Print assembly as parsed"), + cl::Hidden); static cl::opt -DisableVerify("disable-verify", cl::Hidden, - cl::desc("Do not run verifier on input LLVM (dangerous!)")); + DisableVerify("disable-verify", cl::Hidden, + cl::desc("Do not run verifier on input LLVM (dangerous!)")); static cl::opt PreserveBitcodeUseListOrder( "preserve-bc-uselistorder", @@ -96,7 +96,7 @@ int main(int argc, char **argv) { sys::PrintStackTraceOnErrorSignal(); PrettyStackTraceProgram X(argc, argv); LLVMContext &Context = getGlobalContext(); - llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. + llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. cl::ParseCommandLineOptions(argc, argv, "llvm .ll -> .bc assembler\n"); // Parse the file now... @@ -118,7 +118,8 @@ int main(int argc, char **argv) { } } - if (DumpAsm) errs() << "Here's the assembly:\n" << *M.get(); + if (DumpAsm) + errs() << "Here's the assembly:\n" << *M.get(); if (!DisableOutput) WriteOutputFile(M.get()); -- cgit v1.2.3