aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 05:13:45 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 05:13:45 +0000
commitd43035e1d75fa3faeb3e61ad1e067b60d36d5e65 (patch)
tree87695468856dff2d7b6b85fd330e346647589d85
parentf4467b8ebc71ba1a6235b6fde4f74bca09dfbabe (diff)
Use operator << to print modules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2360 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/as/as.cpp5
-rw-r--r--tools/link/link.cpp5
-rw-r--r--tools/llvm-as/as.cpp5
-rw-r--r--tools/llvm-as/llvm-as.cpp5
-rw-r--r--tools/llvm-link/llvm-link.cpp5
5 files changed, 5 insertions, 20 deletions
diff --git a/tools/as/as.cpp b/tools/as/as.cpp
index 3e8a9eaf31..9eff972172 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 6cb30a2bd4..2abde5f7cd 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 3e8a9eaf31..9eff972172 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 3e8a9eaf31..9eff972172 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 6cb30a2bd4..2abde5f7cd 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 != "-") {