From 7c0246236109f4f53560c30d62b0345951061411 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 05:13:45 +0000 Subject: [PATCH] Use operator << to print modules llvm-svn: 2360 --- tools/as/as.cpp | 5 +---- tools/link/link.cpp | 5 +---- tools/llvm-as/as.cpp | 5 +---- tools/llvm-as/llvm-as.cpp | 5 +---- tools/llvm-link/llvm-link.cpp | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/tools/as/as.cpp b/tools/as/as.cpp index 3e8a9eaf31a..9eff9721720 100644 --- a/tools/as/as.cpp +++ b/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/tools/link/link.cpp b/tools/link/link.cpp index 6cb30a2bd4e..2abde5f7cdb 100644 --- a/tools/link/link.cpp +++ b/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/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp index 3e8a9eaf31a..9eff9721720 100644 --- a/tools/llvm-as/as.cpp +++ b/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/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index 3e8a9eaf31a..9eff9721720 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/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/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 6cb30a2bd4e..2abde5f7cdb 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/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 != "-") {