Print the module, not the pointer.
[oota-llvm.git] / tools / llvm-link / llvm-link.cpp
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...