aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-link
diff options
context:
space:
mode:
authorAnand Shukla <ashukla@cs.uiuc.edu>2002-06-25 21:57:48 +0000
committerAnand Shukla <ashukla@cs.uiuc.edu>2002-06-25 21:57:48 +0000
commitcf17bcc7e73cf9dc1c8c74dae50a6694fb124f0f (patch)
tree2dc70dc7864bfaaad42fe9c5fb71f8917aa82a6b /tools/llvm-link
parent91e6388009bde429166a035a7f2fdffaee6007a2 (diff)
Changes for 64bit gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link')
-rw-r--r--tools/llvm-link/llvm-link.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index 11000de9a7..bc26b3162d 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/tools/llvm-link/llvm-link.cpp
@@ -19,7 +19,9 @@
#include <memory>
#include <sys/types.h> // For FileExists
#include <sys/stat.h>
+#include <iostream>
+using std::cerr;
cl::StringList InputFilenames("", "Load <arg> files, linking them together",
cl::OneOrMore);
@@ -106,7 +108,7 @@ int main(int argc, char **argv) {
if (DumpAsm) cerr << "Here's the assembly:\n" << Composite.get();
- ostream *Out = &cout; // Default to printing to stdout...
+ std::ostream *Out = &std::cout; // Default to printing to stdout...
if (OutputFilename != "-") {
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!