diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-24 23:01:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-24 23:01:21 +0000 |
commit | 1ddf664f743f3c8d2ff220888386a9b84396dcab (patch) | |
tree | ea8b236c27ef4974372cbc2c3cf6ed15b8b85da6 /lib/VMCore | |
parent | 04bb837cc0edf2f1908a0ec9b04989598a13cc6a (diff) | |
download | external_llvm-1ddf664f743f3c8d2ff220888386a9b84396dcab.zip external_llvm-1ddf664f743f3c8d2ff220888386a9b84396dcab.tar.gz external_llvm-1ddf664f743f3c8d2ff220888386a9b84396dcab.tar.bz2 |
Make it compile with GCC 3.0.4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 18c3c33..a7f5369 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -64,7 +64,7 @@ static long ValidTypes[Type::FirstDerivedTyID] = { // failed. This provides a nice place to put a breakpoint if you want to see // why something is not correct. // -static inline void CheckFailed(const char *Cond, const string &Message, +static inline void CheckFailed(const char *Cond, const std::string &Message, const Value *V1 = 0, const Value *V2 = 0) { std::cerr << Message << "\n"; if (V1) std::cerr << V1 << "\n"; @@ -100,14 +100,14 @@ static bool verifyInstruction(const Instruction *I) { // Check that PHI nodes look ok if (const PHINode *PN = dyn_cast<PHINode>(I)) { - vector<const BasicBlock*> Preds(pred_begin(I->getParent()), - pred_end(I->getParent())); + std::vector<const BasicBlock*> Preds(pred_begin(I->getParent()), + pred_end(I->getParent())); // Loop over all of the incoming values, make sure that there are // predecessors for each one... // for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) { const BasicBlock *BB = PN->getIncomingBlock(i); - vector<const BasicBlock*>::iterator PI = + std::vector<const BasicBlock*>::iterator PI = find(Preds.begin(), Preds.end(), BB); Assert2(PI != Preds.end(), "PHI node has entry for basic block that" " is not a predecessor!", PN, BB); @@ -115,8 +115,8 @@ static bool verifyInstruction(const Instruction *I) { } // There should be no entries left in the predecessor list... - for (vector<const BasicBlock*>::iterator I = Preds.begin(), E = Preds.end(); - I != E; ++I) + for (std::vector<const BasicBlock*>::iterator I = Preds.begin(), + E = Preds.end(); I != E; ++I) Assert2(0, "PHI node does not have entry for a predecessor basic block!", PN, *I); } |