summaryrefslogtreecommitdiff
path: root/tools/llvm-as
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-22 00:00:37 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-22 00:00:37 +0000
commit3da94aec4d429b2ba0f65fa040c33650cade196b (patch)
treef54f7eb8e1f7b75bc469c85c868c76b3860e0297 /tools/llvm-as
parentfd93908ae8b9684fe71c239e3c6cfe13ff6a2663 (diff)
downloadllvm-3da94aec4d429b2ba0f65fa040c33650cade196b.tar.gz
llvm-3da94aec4d429b2ba0f65fa040c33650cade196b.tar.bz2
llvm-3da94aec4d429b2ba0f65fa040c33650cade196b.tar.xz
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-as')
-rw-r--r--tools/llvm-as/llvm-as.cpp20
1 files changed, 10 insertions, 10 deletions
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<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 @@ Force("f", cl::desc("Overwrite output files"));
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 @@ 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);
}