From: Chris Lattner Date: Sun, 13 Feb 2005 19:12:31 +0000 (+0000) Subject: Print the module, not the pointer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a88155dabfe7d116a76face6f014393585aab18a;p=oota-llvm.git Print the module, not the pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index a28e804ffc2..40ee99642d2 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -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? diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 16e882ee1a0..ed63f1013f7 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -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...