mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user