From 3da94aec4d429b2ba0f65fa040c33650cade196b Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 22 Apr 2005 00:00:37 +0000 Subject: Remove trailing whitespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21428 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-as/llvm-as.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tools/llvm-as') diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index 40ee99642d..ad7ad29c96 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -1,10 +1,10 @@ //===--- llvm-as.cpp - The low-level LLVM assembler -----------------------===// -// +// // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// //===----------------------------------------------------------------------===// // // This utility may be invoked in the following manner: @@ -12,7 +12,7 @@ // llvm-as [options] - Read LLVM asm from stdin, write bytecode to stdout // llvm-as [options] x.ll - Read LLVM asm from the x.ll file, write bytecode // to the x.bc file. -// +// //===------------------------------------------------------------------------=== #include "llvm/Module.h" @@ -28,7 +28,7 @@ using namespace llvm; -static cl::opt +static cl::opt InputFilename(cl::Positional, cl::desc(""), cl::init("-")); static cl::opt @@ -41,7 +41,7 @@ Force("f", cl::desc("Overwrite output files")); static cl::opt DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden); -static cl::opt +static cl::opt NoCompress("disable-compression", cl::init(false), cl::desc("Don't compress the generated bytecode")); @@ -72,7 +72,7 @@ int main(int argc, char **argv) { std::cerr << Err; return 1; } - + if (DumpAsm) std::cerr << "Here's the assembly:\n" << *M.get(); if (OutputFilename != "") { // Specified an output filename? @@ -84,7 +84,7 @@ int main(int argc, char **argv) { << "Use -f command line argument to force output\n"; return 1; } - Out = new std::ofstream(OutputFilename.c_str(), std::ios::out | + Out = new std::ofstream(OutputFilename.c_str(), std::ios::out | std::ios::trunc | std::ios::binary); } else { // Specified stdout // FIXME: cout is not binary! @@ -113,19 +113,19 @@ int main(int argc, char **argv) { return 1; } - Out = new std::ofstream(OutputFilename.c_str(), std::ios::out | + Out = new std::ofstream(OutputFilename.c_str(), std::ios::out | std::ios::trunc | std::ios::binary); // Make sure that the Out file gets unlinked from the disk if we get a // SIGINT sys::RemoveFileOnSignal(sys::Path(OutputFilename)); } } - + if (!Out->good()) { std::cerr << argv[0] << ": error opening " << OutputFilename << "!\n"; return 1; } - + if (Force || !CheckBytecodeOutputToConsole(Out,true)) { WriteBytecodeToFile(M.get(), *Out, !NoCompress); } -- cgit v1.2.3