Use operator << to print modules

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2360 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-04-28 05:13:45 +00:00
parent f4467b8ebc
commit d43035e1d7
5 changed files with 5 additions and 20 deletions

View File

@ -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())) {

View File

@ -109,10 +109,7 @@ int main(int argc, char **argv) {
}
}
if (DumpAsm) {
cerr << "Here's the assembly:\n";
Composite.get()->dump();
}
if (DumpAsm) cerr << "Here's the assembly:\n" << Composite.get();
ostream *Out = &cout; // Default to printing to stdout...
if (OutputFilename != "-") {

View File

@ -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())) {

View File

@ -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())) {

View File

@ -109,10 +109,7 @@ int main(int argc, char **argv) {
}
}
if (DumpAsm) {
cerr << "Here's the assembly:\n";
Composite.get()->dump();
}
if (DumpAsm) cerr << "Here's the assembly:\n" << Composite.get();
ostream *Out = &cout; // Default to printing to stdout...
if (OutputFilename != "-") {