Use operator << to print modules
authorChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 05:13:45 +0000 (05:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 05:13:45 +0000 (05:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2360 91177308-0d34-0410-b5e6-96231b3b80d8

tools/as/as.cpp
tools/link/link.cpp
tools/llvm-as/as.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-link/llvm-link.cpp

index 3e8a9eaf31a6b56230b3f1c766b3e0402de79239..9eff9721720ac01368e61d85d8bbc4553f1c2495 100644 (file)
@@ -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())) {
index 6cb30a2bd4e69e695bb8a1bbf0f63571749d465a..2abde5f7cdbc8199150c7c6117f805b16f8704f7 100644 (file)
@@ -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 != "-") {
index 3e8a9eaf31a6b56230b3f1c766b3e0402de79239..9eff9721720ac01368e61d85d8bbc4553f1c2495 100644 (file)
@@ -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())) {
index 3e8a9eaf31a6b56230b3f1c766b3e0402de79239..9eff9721720ac01368e61d85d8bbc4553f1c2495 100644 (file)
@@ -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())) {
index 6cb30a2bd4e69e695bb8a1bbf0f63571749d465a..2abde5f7cdbc8199150c7c6117f805b16f8704f7 100644 (file)
@@ -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 != "-") {