[llvm-commits] CVS: llvm/tools/llvm-as/llvm-as.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Apr 21 17:00:15 PDT 2005
Changes in directory llvm/tools/llvm-as:
llvm-as.cpp updated: 1.43 -> 1.44
---
Log message:
Remove trailing whitespace
---
Diffs of the changes: (+10 -10)
llvm-as.cpp | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Index: llvm/tools/llvm-as/llvm-as.cpp
diff -u llvm/tools/llvm-as/llvm-as.cpp:1.43 llvm/tools/llvm-as/llvm-as.cpp:1.44
--- llvm/tools/llvm-as/llvm-as.cpp:1.43 Sun Feb 13 13:11:48 2005
+++ llvm/tools/llvm-as/llvm-as.cpp Thu Apr 21 18:59:34 2005
@@ -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<std::string>
+static cl::opt<std::string>
InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-"));
static cl::opt<std::string>
@@ -41,7 +41,7 @@
static cl::opt<bool>
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
-static cl::opt<bool>
+static cl::opt<bool>
NoCompress("disable-compression", cl::init(false),
cl::desc("Don't compress the generated bytecode"));
@@ -72,7 +72,7 @@
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 @@
<< "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 @@
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);
}
More information about the llvm-commits
mailing list