diff --git a/llvm/tools/as/as.cpp b/llvm/tools/as/as.cpp index 3e8a9eaf31a6..9eff9721720a 100644 --- a/llvm/tools/as/as.cpp +++ b/llvm/tools/as/as.cpp @@ -35,10 +35,7 @@ int main(int argc, char **argv) { return 1; } - if (DumpAsm) { - cerr << "Here's the assembly:\n"; - M.get()->dump(); - } + if (DumpAsm) cerr << "Here's the assembly:\n" << M.get(); if (OutputFilename != "") { // Specified an output filename? if (!Force && std::ifstream(OutputFilename.c_str())) { diff --git a/llvm/tools/link/link.cpp b/llvm/tools/link/link.cpp index 6cb30a2bd4e6..2abde5f7cdbc 100644 --- a/llvm/tools/link/link.cpp +++ b/llvm/tools/link/link.cpp @@ -109,10 +109,7 @@ int main(int argc, char **argv) { } } - if (DumpAsm) { - cerr << "Here's the assembly:\n"; - Composite.get()->dump(); - } + if (DumpAsm) cerr << "Here's the assembly:\n" << Composite.get(); ostream *Out = &cout; // Default to printing to stdout... if (OutputFilename != "-") { diff --git a/llvm/tools/llvm-as/as.cpp b/llvm/tools/llvm-as/as.cpp index 3e8a9eaf31a6..9eff9721720a 100644 --- a/llvm/tools/llvm-as/as.cpp +++ b/llvm/tools/llvm-as/as.cpp @@ -35,10 +35,7 @@ int main(int argc, char **argv) { return 1; } - if (DumpAsm) { - cerr << "Here's the assembly:\n"; - M.get()->dump(); - } + if (DumpAsm) cerr << "Here's the assembly:\n" << M.get(); if (OutputFilename != "") { // Specified an output filename? if (!Force && std::ifstream(OutputFilename.c_str())) { diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp index 3e8a9eaf31a6..9eff9721720a 100644 --- a/llvm/tools/llvm-as/llvm-as.cpp +++ b/llvm/tools/llvm-as/llvm-as.cpp @@ -35,10 +35,7 @@ int main(int argc, char **argv) { return 1; } - if (DumpAsm) { - cerr << "Here's the assembly:\n"; - M.get()->dump(); - } + if (DumpAsm) cerr << "Here's the assembly:\n" << M.get(); if (OutputFilename != "") { // Specified an output filename? if (!Force && std::ifstream(OutputFilename.c_str())) { diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index 6cb30a2bd4e6..2abde5f7cdbc 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/tools/llvm-link/llvm-link.cpp @@ -109,10 +109,7 @@ int main(int argc, char **argv) { } } - if (DumpAsm) { - cerr << "Here's the assembly:\n"; - Composite.get()->dump(); - } + if (DumpAsm) cerr << "Here's the assembly:\n" << Composite.get(); ostream *Out = &cout; // Default to printing to stdout... if (OutputFilename != "-") {