mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 02:03:11 +00:00
Reindent code to match the rest of the file
llvm-svn: 6772
This commit is contained in:
parent
4c82a3f652
commit
a7bf3dea5c
@ -134,8 +134,8 @@ 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 (OutputFilename != "") {
|
||||
// Specified an output filename?
|
||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||
// If force is not specified, make sure not to overwrite a file!
|
||||
std::cerr << argv[0] << ": error opening '" << OutputFilename
|
||||
@ -148,21 +148,15 @@ main(int argc, char **argv)
|
||||
// Make sure that the Out file gets unlink'd from the disk if we get a
|
||||
// SIGINT
|
||||
RemoveFileOnSignal(OutputFilename);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (InputFilename == "-")
|
||||
{
|
||||
} else {
|
||||
if (InputFilename == "-") {
|
||||
OutputFilename = "-";
|
||||
Out = &std::cout;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
std::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!
|
||||
std::cerr << argv[0] << ": error opening '" << OutputFilename
|
||||
<< "': file exists!\n"
|
||||
@ -171,10 +165,8 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
Out = new std::ofstream(OutputFilename.c_str());
|
||||
if (!Out->good())
|
||||
{
|
||||
std::cerr << argv[0] << ": error opening " << OutputFilename
|
||||
<< "!\n";
|
||||
if (!Out->good()) {
|
||||
std::cerr << argv[0] << ": error opening " << OutputFilename << "!\n";
|
||||
delete Out;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user