summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-as/llvm-as.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 05:13:45 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 05:13:45 +0000
commit17a4573d2182a291d1aba505c2cf33bdfc8b4637 (patch)
treed54a3dc080eb5ab09a16ad693e0e17ea2c3ee554 /llvm/tools/llvm-as/llvm-as.cpp
parent02260eeabf294956f6d38e11e423b8d5e709af1b (diff)
downloadbcm5719-llvm-17a4573d2182a291d1aba505c2cf33bdfc8b4637.tar.gz
bcm5719-llvm-17a4573d2182a291d1aba505c2cf33bdfc8b4637.zip
Use operator << to print modules
llvm-svn: 2360
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
-rw-r--r--llvm/tools/llvm-as/llvm-as.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp
index 3e8a9eaf31a..9eff9721720 100644
--- a/llvm/tools/llvm-as/llvm-as.cpp
+++ b/llvm/tools/llvm-as/llvm-as.cpp
@@ -35,10 +35,7 @@ int main(int argc, char **argv) {
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())) {
OpenPOWER on IntegriCloud