Print the module, not the pointer.

llvm-svn: 20156
This commit is contained in:
Chris Lattner 2005-02-13 19:12:31 +00:00
parent 8d0f126b74
commit 6983f5d2ed
2 changed files with 2 additions and 2 deletions

View 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?

View 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...