mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
651c4ba80c
commit
de86cbdc57
@ -87,7 +87,7 @@ namespace {
|
|||||||
"into executing programs"));
|
"into executing programs"));
|
||||||
|
|
||||||
cl::list<std::string>
|
cl::list<std::string>
|
||||||
AdditionalLinkerArgs("Xlinker",
|
AdditionalLinkerArgs("Xlinker",
|
||||||
cl::desc("Additional arguments to pass to the linker"));
|
cl::desc("Additional arguments to pass to the linker"));
|
||||||
|
|
||||||
cl::opt<std::string>
|
cl::opt<std::string>
|
||||||
@ -119,7 +119,7 @@ namespace {
|
|||||||
cl::ZeroOrMore, cl::PositionalEatsArgs);
|
cl::ZeroOrMore, cl::PositionalEatsArgs);
|
||||||
|
|
||||||
cl::opt<std::string>
|
cl::opt<std::string>
|
||||||
GCCBinary("gcc", cl::init("gcc"),
|
GCCBinary("gcc", cl::init("gcc"),
|
||||||
cl::desc("The gcc binary to use. (default 'gcc')"));
|
cl::desc("The gcc binary to use. (default 'gcc')"));
|
||||||
|
|
||||||
cl::list<std::string>
|
cl::list<std::string>
|
||||||
@ -157,7 +157,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
if (!Interpreter) {
|
if (!Interpreter) {
|
||||||
InterpreterSel = RunLLC;
|
InterpreterSel = RunLLC;
|
||||||
Interpreter = AbstractInterpreter::createLLC(getToolName(), Message,
|
Interpreter = AbstractInterpreter::createLLC(getToolName(), Message,
|
||||||
GCCBinary, &ToolArgv,
|
GCCBinary, &ToolArgv,
|
||||||
&GCCToolArgv);
|
&GCCToolArgv);
|
||||||
}
|
}
|
||||||
if (!Interpreter) {
|
if (!Interpreter) {
|
||||||
@ -178,7 +178,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
case RunLLCIA:
|
case RunLLCIA:
|
||||||
case LLC_Safe:
|
case LLC_Safe:
|
||||||
Interpreter = AbstractInterpreter::createLLC(getToolName(), Message,
|
Interpreter = AbstractInterpreter::createLLC(getToolName(), Message,
|
||||||
GCCBinary, &ToolArgv,
|
GCCBinary, &ToolArgv,
|
||||||
&GCCToolArgv,
|
&GCCToolArgv,
|
||||||
InterpreterSel == RunLLCIA);
|
InterpreterSel == RunLLCIA);
|
||||||
break;
|
break;
|
||||||
@ -189,7 +189,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
case RunCBE:
|
case RunCBE:
|
||||||
case CBE_bug:
|
case CBE_bug:
|
||||||
Interpreter = AbstractInterpreter::createCBE(getToolName(), Message,
|
Interpreter = AbstractInterpreter::createCBE(getToolName(), Message,
|
||||||
GCCBinary, &ToolArgv,
|
GCCBinary, &ToolArgv,
|
||||||
&GCCToolArgv);
|
&GCCToolArgv);
|
||||||
break;
|
break;
|
||||||
case Custom:
|
case Custom:
|
||||||
@ -216,7 +216,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
SafeInterpreterSel = RunLLC;
|
SafeInterpreterSel = RunLLC;
|
||||||
SafeToolArgs.push_back("--relocation-model=pic");
|
SafeToolArgs.push_back("--relocation-model=pic");
|
||||||
SafeInterpreter = AbstractInterpreter::createLLC(Path.c_str(), Message,
|
SafeInterpreter = AbstractInterpreter::createLLC(Path.c_str(), Message,
|
||||||
GCCBinary,
|
GCCBinary,
|
||||||
&SafeToolArgs,
|
&SafeToolArgs,
|
||||||
&GCCToolArgv);
|
&GCCToolArgv);
|
||||||
}
|
}
|
||||||
@ -227,7 +227,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
SafeInterpreterSel = RunLLC;
|
SafeInterpreterSel = RunLLC;
|
||||||
SafeToolArgs.push_back("--relocation-model=pic");
|
SafeToolArgs.push_back("--relocation-model=pic");
|
||||||
SafeInterpreter = AbstractInterpreter::createLLC(Path.c_str(), Message,
|
SafeInterpreter = AbstractInterpreter::createLLC(Path.c_str(), Message,
|
||||||
GCCBinary,
|
GCCBinary,
|
||||||
&SafeToolArgs,
|
&SafeToolArgs,
|
||||||
&GCCToolArgv);
|
&GCCToolArgv);
|
||||||
}
|
}
|
||||||
@ -249,7 +249,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
SafeInterpreterSel = RunLLC;
|
SafeInterpreterSel = RunLLC;
|
||||||
SafeToolArgs.push_back("--relocation-model=pic");
|
SafeToolArgs.push_back("--relocation-model=pic");
|
||||||
SafeInterpreter = AbstractInterpreter::createLLC(Path.c_str(), Message,
|
SafeInterpreter = AbstractInterpreter::createLLC(Path.c_str(), Message,
|
||||||
GCCBinary,
|
GCCBinary,
|
||||||
&SafeToolArgs,
|
&SafeToolArgs,
|
||||||
&GCCToolArgv);
|
&GCCToolArgv);
|
||||||
}
|
}
|
||||||
@ -281,7 +281,7 @@ bool BugDriver::initializeExecutionEnvironment() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!SafeInterpreter) { outs() << Message << "\nExiting.\n"; exit(1); }
|
if (!SafeInterpreter) { outs() << Message << "\nExiting.\n"; exit(1); }
|
||||||
|
|
||||||
gcc = GCC::create(Message, GCCBinary, &GCCToolArgv);
|
gcc = GCC::create(Message, GCCBinary, &GCCToolArgv);
|
||||||
if (!gcc) { outs() << Message << "\nExiting.\n"; exit(1); }
|
if (!gcc) { outs() << Message << "\nExiting.\n"; exit(1); }
|
||||||
|
|
||||||
@ -298,7 +298,7 @@ void BugDriver::compileProgram(Module *M, std::string *Error) const {
|
|||||||
sys::Path BitcodeFile (OutputPrefix + "-test-program.bc");
|
sys::Path BitcodeFile (OutputPrefix + "-test-program.bc");
|
||||||
std::string ErrMsg;
|
std::string ErrMsg;
|
||||||
if (BitcodeFile.makeUnique(true, &ErrMsg)) {
|
if (BitcodeFile.makeUnique(true, &ErrMsg)) {
|
||||||
errs() << ToolName << ": Error making unique filename: " << ErrMsg
|
errs() << ToolName << ": Error making unique filename: " << ErrMsg
|
||||||
<< "\n";
|
<< "\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -432,7 +432,7 @@ std::string BugDriver::compileSharedObject(const std::string &BitcodeFile,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// createReferenceFile - calls compileProgram and then records the output
|
/// createReferenceFile - calls compileProgram and then records the output
|
||||||
/// into ReferenceOutputFile. Returns true if reference file created, false
|
/// into ReferenceOutputFile. Returns true if reference file created, false
|
||||||
/// otherwise. Note: initializeExecutionEnvironment should be called BEFORE
|
/// otherwise. Note: initializeExecutionEnvironment should be called BEFORE
|
||||||
/// this function.
|
/// this function.
|
||||||
///
|
///
|
||||||
|
@ -66,7 +66,7 @@ public:
|
|||||||
const std::string &OutputFile,
|
const std::string &OutputFile,
|
||||||
std::string *Error = 0,
|
std::string *Error = 0,
|
||||||
const std::vector<std::string> &GCCArgs =
|
const std::vector<std::string> &GCCArgs =
|
||||||
std::vector<std::string>(),
|
std::vector<std::string>(),
|
||||||
unsigned Timeout = 0,
|
unsigned Timeout = 0,
|
||||||
unsigned MemoryLimit = 0);
|
unsigned MemoryLimit = 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user