Changes for 64bit gcc
authorAnand Shukla <ashukla@cs.uiuc.edu>
Tue, 25 Jun 2002 21:57:48 +0000 (21:57 +0000)
committerAnand Shukla <ashukla@cs.uiuc.edu>
Tue, 25 Jun 2002 21:57:48 +0000 (21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2799 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp
tools/gccld/gccld.cpp
tools/link/link.cpp
tools/llc/llc.cpp
tools/llvm-link/llvm-link.cpp

index d7ce20b58c02e765b430f40156a47690abb7b042..8b06c3248b397a5560277f64332d273912c54eeb 100644 (file)
@@ -21,6 +21,7 @@
 #include "Support/Signals.h"
 #include <memory>
 #include <fstream>
+using std::cerr;
 
 static cl::String InputFilename   ("", "Parse <arg> file, compile to bytecode",
                                    cl::Required, "");
@@ -64,7 +65,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
 
   addPass(PM, createRaisePointerReferencesPass());// Eliminate casts
   addPass(PM, createPromoteMemoryToRegister());   // Promote alloca's to regs
-  addPass(PM, createReassociatePass());           // Reassociate expressions
+  /* addPass(PM, createReassociatePass());*/           // Reassociate expressions
   addPass(PM, createInstructionCombiningPass());  // Combine silly seq's
   addPass(PM, createDeadInstEliminationPass());   // Kill InstCombine remnants
   addPass(PM, createLICMPass());                  // Hoist loop invariants
@@ -87,7 +88,7 @@ int main(int argc, char **argv) {
     // Parse the file now...
     M.reset(ParseAssemblyFile(InputFilename));
   } catch (const ParseException &E) {
-    cerr << E.getMessage() << endl;
+    cerr << E.getMessage() << std::endl;
     return 1;
   }
 
@@ -107,7 +108,7 @@ int main(int argc, char **argv) {
     OutputFilename += ".o";
   }
 
-  std::ofstream Out(OutputFilename.c_str(), ios::out);
+  std::ofstream Out(OutputFilename.c_str(), std::ios::out);
   if (!Out.good()) {
     cerr << "Error opening " << OutputFilename << "!\n";
     return 1;
index 02699992aca3bfcc2070f61781f1634486be65c2..5793b10d9c1dcbe087fb2e7bde6ae4b3dc1dc7b4 100644 (file)
@@ -31,7 +31,7 @@
 #include <algorithm>
 #include <sys/types.h>     // For FileExists
 #include <sys/stat.h>
-
+using std::cerr;
 
 cl::StringList InputFilenames("", "Load <arg> files, linking them together", 
                              cl::OneOrMore);
@@ -66,7 +66,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) {
     if (Verbose) {
       cerr << "Error opening bytecode file: '" << Filename << "'";
       if (ErrorMessage.size()) cerr << ": " << ErrorMessage;
-      cerr << endl;
+      cerr << std::endl;
     }
     
     if (NextLibPathIdx == LibPaths.size()) break;
@@ -93,7 +93,7 @@ int main(int argc, char **argv) {
 
   if (!Libraries.empty()) {
     // Sort libraries list...
-    sort(Libraries.begin(), Libraries.end());
+    //sort(Libraries.begin(), Libraries.end());
 
     // Remove duplicate libraries entries...
     Libraries.erase(unique(Libraries.begin(), Libraries.end()),
index 11000de9a719ab6b365221897a7f4f82201da405..bc26b3162daeb1f3cde5b046f704addc5fe7fef2 100644 (file)
@@ -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!
index 1ef8144f2a6f905d59e0044d82e5254d7dcee068..4f98e55b2edfafc41c73722099fde2b72a390ba7 100644 (file)
@@ -22,6 +22,7 @@
 #include <memory>
 #include <fstream>
 using std::string;
+using std::cerr;
 
 static cl::String InputFilename ("", "Input filename", cl::NoFlags, "-");
 static cl::String OutputFilename("o", "Output filename", cl::NoFlags, "");
index 11000de9a719ab6b365221897a7f4f82201da405..bc26b3162daeb1f3cde5b046f704addc5fe7fef2 100644 (file)
@@ -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!