diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 21:43:28 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 21:43:28 +0000 |
commit | 63aaa11506f1edcd6e6073b1dbdbe02d678c8cfa (patch) | |
tree | fcd6844d9cc879c1d242ab0cc22c85291d91211f /tools/llvm-as | |
parent | e6f74a9ce89bd1762cddef1ec9d1572602d27163 (diff) | |
download | external_llvm-63aaa11506f1edcd6e6073b1dbdbe02d678c8cfa.zip external_llvm-63aaa11506f1edcd6e6073b1dbdbe02d678c8cfa.tar.gz external_llvm-63aaa11506f1edcd6e6073b1dbdbe02d678c8cfa.tar.bz2 |
Changes for 64bit gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-as')
-rw-r--r-- | tools/llvm-as/as.cpp | 12 | ||||
-rw-r--r-- | tools/llvm-as/llvm-as.cpp | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp index 594feb8..4ee3296 100644 --- a/tools/llvm-as/as.cpp +++ b/tools/llvm-as/as.cpp @@ -6,7 +6,7 @@ // as [options] - Read LLVM assembly from stdin, write bytecode to stdout // as [options] x.ll - Read LLVM assembly from the x.ll file, write bytecode // to the x.bc file. -// +// //===------------------------------------------------------------------------=== #include "llvm/Module.h" @@ -16,6 +16,8 @@ #include "Support/Signals.h" #include <fstream> #include <memory> +#include <iostream> +using std::cerr; cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-"); cl::String OutputFilename("o", "Override output filename", cl::NoFlags, ""); @@ -25,7 +27,7 @@ cl::Flag DumpAsm ("d", "Print assembly as parsed", cl::Hidden, false); int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n"); - ostream *Out = 0; + std::ostream *Out = 0; try { // Parse the file now... std::auto_ptr<Module> M(ParseAssemblyFile(InputFilename)); @@ -47,7 +49,7 @@ int main(int argc, char **argv) { } else { if (InputFilename == "-") { OutputFilename = "-"; - Out = &cout; + Out = &std::cout; } else { std::string IFN = InputFilename; int Len = IFN.length(); @@ -80,11 +82,11 @@ int main(int argc, char **argv) { WriteBytecodeToFile(M.get(), *Out); } catch (const ParseException &E) { - cerr << E.getMessage() << endl; + cerr << E.getMessage() << std::endl; return 1; } - if (Out != &cout) delete Out; + if (Out != &std::cout) delete Out; return 0; } diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index 594feb8..4ee3296 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -6,7 +6,7 @@ // as [options] - Read LLVM assembly from stdin, write bytecode to stdout // as [options] x.ll - Read LLVM assembly from the x.ll file, write bytecode // to the x.bc file. -// +// //===------------------------------------------------------------------------=== #include "llvm/Module.h" @@ -16,6 +16,8 @@ #include "Support/Signals.h" #include <fstream> #include <memory> +#include <iostream> +using std::cerr; cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-"); cl::String OutputFilename("o", "Override output filename", cl::NoFlags, ""); @@ -25,7 +27,7 @@ cl::Flag DumpAsm ("d", "Print assembly as parsed", cl::Hidden, false); int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n"); - ostream *Out = 0; + std::ostream *Out = 0; try { // Parse the file now... std::auto_ptr<Module> M(ParseAssemblyFile(InputFilename)); @@ -47,7 +49,7 @@ int main(int argc, char **argv) { } else { if (InputFilename == "-") { OutputFilename = "-"; - Out = &cout; + Out = &std::cout; } else { std::string IFN = InputFilename; int Len = IFN.length(); @@ -80,11 +82,11 @@ int main(int argc, char **argv) { WriteBytecodeToFile(M.get(), *Out); } catch (const ParseException &E) { - cerr << E.getMessage() << endl; + cerr << E.getMessage() << std::endl; return 1; } - if (Out != &cout) delete Out; + if (Out != &std::cout) delete Out; return 0; } |