diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 20:35:19 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 20:35:19 +0000 |
commit | a928403ca41f8816f345550eb184175492b64e30 (patch) | |
tree | f276467ed7d172cbf1cfd7b1983f9340ab3f7284 /lib/Analysis/DataStructure/FunctionRepBuilder.h | |
parent | add9643e92ad5acfff2bd9a6594dbdc38b5f3dab (diff) |
changes to make it compatible with 64bit gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/FunctionRepBuilder.h')
-rw-r--r-- | lib/Analysis/DataStructure/FunctionRepBuilder.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/Analysis/DataStructure/FunctionRepBuilder.h b/lib/Analysis/DataStructure/FunctionRepBuilder.h index 9eedf0259a..30e0bb21b6 100644 --- a/lib/Analysis/DataStructure/FunctionRepBuilder.h +++ b/lib/Analysis/DataStructure/FunctionRepBuilder.h @@ -10,6 +10,7 @@ #include "llvm/Analysis/DataStructure.h" #include "llvm/Support/InstVisitor.h" +#include <iostream> // DEBUG_DATA_STRUCTURE_CONSTRUCTION - Define this to 1 if you want debug output //#define DEBUG_DATA_STRUCTURE_CONSTRUCTION 1 @@ -48,12 +49,12 @@ class FunctionRepBuilder : InstVisitor<FunctionRepBuilder> { // ValueMap - Mapping between values we are processing and the possible // datastructures that they may point to... - map<Value*, PointerValSet> ValueMap; + std::map<Value*, PointerValSet> ValueMap; // CallMap - Keep track of which call nodes correspond to which call insns. // The reverse mapping is stored in the CallDSNodes themselves. // - map<CallInst*, CallDSNode*> CallMap; + std::map<CallInst*, CallDSNode*> CallMap; // Worklist - Vector of (pointer typed) instructions to process still... std::vector<Instruction *> WorkList; @@ -87,7 +88,7 @@ public: const PointerValSet &getRetNode() const { return RetNode; } - const map<Value*, PointerValSet> &getValueMap() const { return ValueMap; } + const std::map<Value*, PointerValSet> &getValueMap() const { return ValueMap; } private: static PointerVal getIndexedPointerDest(const PointerVal &InP, const MemAccessInst &MAI); @@ -97,15 +98,16 @@ private: // While the worklist still has instructions to process, process them! while (!WorkList.empty()) { Instruction *I = WorkList.back(); WorkList.pop_back(); + #ifdef DEBUG_DATA_STRUCTURE_CONSTRUCTION - cerr << "Processing worklist inst: " << I; + std::cerr << "Processing worklist inst: " << I; #endif visit(*I); // Dispatch to a visitXXX function based on instruction type... #ifdef DEBUG_DATA_STRUCTURE_CONSTRUCTION if (I->hasName() && ValueMap.count(I)) { - cerr << "Inst %" << I->getName() << " value is:\n"; - ValueMap[I].print(cerr); + std::cerr << "Inst %" << I->getName() << " value is:\n"; + ValueMap[I].print(std::cerr); } #endif } |