Print the module, not the pointer.
authorChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2005 19:12:31 +0000 (19:12 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2005 19:12:31 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20156 91177308-0d34-0410-b5e6-96231b3b80d8

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

index a28e804ffc2ce31a6ae900e9fe75771555026bc5..40ee99642d2f07afc6964f354a7d460ebf61853c 100644 (file)
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
       return 1;
     }
   
-    if (DumpAsm) std::cerr << "Here's the assembly:\n" << M.get();
+    if (DumpAsm) std::cerr << "Here's the assembly:\n" << *M.get();
 
     if (OutputFilename != "") {   // Specified an output filename?
       if (OutputFilename != "-") {  // Not stdout?
index 16e882ee1a0c46ed2176c8d44336928d2763d2be..ed63f1013f7e9b0eb9622e93ef50f5857a87a04f 100644 (file)
@@ -110,7 +110,7 @@ int main(int argc, char **argv) {
     // TODO: Iterate over the -l list and link in any modules containing
     // global symbols that have not been resolved so far.
 
-    if (DumpAsm) std::cerr << "Here's the assembly:\n" << Composite.get();
+    if (DumpAsm) std::cerr << "Here's the assembly:\n" << *Composite.get();
 
     // FIXME: cout is not binary!
     std::ostream *Out = &std::cout;  // Default to printing to stdout...