aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-13 19:12:31 +0000
committerChris Lattner <sabre@nondot.org>2005-02-13 19:12:31 +0000
commita88155dabfe7d116a76face6f014393585aab18a (patch)
tree8be500dc304000e9ef3f82d4abd6852ceb3c2222
parent818827d734d6b4fa55a638a69e751a960e4a2a94 (diff)
Print the module, not the pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20156 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/llvm-as/llvm-as.cpp2
-rw-r--r--tools/llvm-link/llvm-link.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp
index a28e804ffc..40ee99642d 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 16e882ee1a..ed63f1013f 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...