mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
In an amazing fit of stupidity, I flipped the conditional and didn't test
it right. Sheesh :) llvm-svn: 1550
This commit is contained in:
parent
bf0c3377fd
commit
d4ebfa46da
@ -39,7 +39,7 @@ int main(int argc, char **argv) {
|
||||
cerr << "Here's the assembly:\n" << C.get();
|
||||
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
@ -61,7 +61,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
OutputFilename += ".bc";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
@ -58,7 +58,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename
|
||||
<< "': File exists! Sending to standard output.\n";
|
||||
@ -79,7 +79,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
OutputFilename += ".ll";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename
|
||||
<< "': File exists! Sending to standard output.\n";
|
||||
|
@ -111,7 +111,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
ostream *Out = &cout; // Default to printing to stdout...
|
||||
if (OutputFilename != "-") {
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
@ -136,7 +136,7 @@ int main(int argc, char **argv) {
|
||||
"files on stdin not supported with tracing");
|
||||
string traceFileName = GetFileNameRoot(InputFilename) + ".trace.bc";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
@ -170,7 +170,7 @@ int main(int argc, char **argv) {
|
||||
// Figure out where we are going to send the output...
|
||||
std::ostream *Out = 0;
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
@ -185,7 +185,7 @@ int main(int argc, char **argv) {
|
||||
string OutputFilename = GetFileNameRoot(InputFilename);
|
||||
OutputFilename += ".s";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
@ -39,7 +39,7 @@ int main(int argc, char **argv) {
|
||||
cerr << "Here's the assembly:\n" << C.get();
|
||||
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
@ -61,7 +61,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
OutputFilename += ".bc";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
@ -39,7 +39,7 @@ int main(int argc, char **argv) {
|
||||
cerr << "Here's the assembly:\n" << C.get();
|
||||
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
@ -61,7 +61,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
OutputFilename += ".bc";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
@ -58,7 +58,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename
|
||||
<< "': File exists! Sending to standard output.\n";
|
||||
@ -79,7 +79,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
OutputFilename += ".ll";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename
|
||||
<< "': File exists! Sending to standard output.\n";
|
||||
|
@ -58,7 +58,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
if (OutputFilename != "") { // Specified an output filename?
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename
|
||||
<< "': File exists! Sending to standard output.\n";
|
||||
@ -79,7 +79,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
OutputFilename += ".ll";
|
||||
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename
|
||||
<< "': File exists! Sending to standard output.\n";
|
||||
|
@ -111,7 +111,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
ostream *Out = &cout; // Default to printing to stdout...
|
||||
if (OutputFilename != "-") {
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
@ -127,7 +127,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
std::ostream *Out = &std::cout; // Default to printing to stdout...
|
||||
if (OutputFilename != "") {
|
||||
if (!Force && !std::ifstream(OutputFilename.c_str())) {
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
cerr << "Error opening '" << OutputFilename << "': File exists!\n"
|
||||
<< "Use -f command line argument to force output\n";
|
||||
|
Loading…
Reference in New Issue
Block a user