Use operator << to print modules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2360 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp
index 3e8a9ea..9eff972 100644
--- a/tools/llvm-as/as.cpp
+++ b/tools/llvm-as/as.cpp
@@ -35,10 +35,7 @@
return 1;
}
- if (DumpAsm) {
- cerr << "Here's the assembly:\n";
- M.get()->dump();
- }
+ if (DumpAsm) cerr << "Here's the assembly:\n" << M.get();
if (OutputFilename != "") { // Specified an output filename?
if (!Force && std::ifstream(OutputFilename.c_str())) {