From: Anand Shukla Date: Tue, 25 Jun 2002 22:07:38 +0000 (+0000) Subject: changes for 64bit gcc X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d05e22cb6f7b5dfbc50d95ddc0165674320c0e01;p=oota-llvm.git changes for 64bit gcc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2801 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index ae659da3fb0..db2614e4527 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -105,7 +105,7 @@ TimingInfo::~TimingInfo() { // Iterate over all of the data, converting it into the dual of the data map, // so that the data is sorted by amount of time taken, instead of pointer. // - std::vector > Data; + std::vector > Data; double TotalTime = 0; for (std::map::iterator I = TimingData.begin(), E = TimingData.end(); I != E; ++I) @@ -116,10 +116,10 @@ TimingInfo::~TimingInfo() { } // Sort the data by time as the primary key, in reverse order... - std::sort(Data.begin(), Data.end(), greater >()); + std::sort(Data.begin(), Data.end(), std::greater >()); // Print out timing header... - cerr << std::string(79, '=') << "\n" + std::cerr << std::string(79, '=') << "\n" << " ... Pass execution timing report ...\n" << std::string(79, '=') << "\n Total Execution Time: " << TotalTime << " seconds\n\n % Time: Seconds:\tPass Name:\n"; @@ -129,7 +129,7 @@ TimingInfo::~TimingInfo() { fprintf(stderr, " %6.2f%% %fs\t%s\n", Data[i].first*100 / TotalTime, Data[i].first, Data[i].second->getPassName()); } - cerr << " 100.00% " << TotalTime << "s\tTOTAL\n" + std::cerr << " 100.00% " << TotalTime << "s\tTOTAL\n" << std::string(79, '=') << "\n"; } diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h index 845e5cd9254..593e7e09eed 100644 --- a/lib/VMCore/PassManagerT.h +++ b/lib/VMCore/PassManagerT.h @@ -142,7 +142,7 @@ public: #ifndef NDEBUG // All Required analyses should be available to the pass as it runs! - for (vector::const_iterator + for (std::vector::const_iterator I = AnUsage.getRequiredSet().begin(), E = AnUsage.getRequiredSet().end(); I != E; ++I) { assert(getAnalysisOrNullUp(*I) && "Analysis used but not available!"); diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index da3d87f9d2e..3ac0f107218 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -8,7 +8,7 @@ #include "llvm/SymbolTable.h" #include "llvm/DerivedTypes.h" #include - +#include //===----------------------------------------------------------------------===// // Value Class //===----------------------------------------------------------------------===// diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 605764a238f..c773b806428 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -49,6 +49,7 @@ #include "llvm/Support/InstVisitor.h" #include "Support/STLExtras.h" #include +#include namespace { // Anonymous namespace for class @@ -76,7 +77,7 @@ namespace { // Anonymous namespace for class CheckFailed("Function Declaration has Internal Linkage!", I); if (Broken) { - cerr << "Broken module found, compilation aborted!\n"; + std::cerr << "Broken module found, compilation aborted!\n"; abort(); } return false;