From ff4c42b7c3d88595b32ccfdba648afecc0ef445d Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Tue, 25 Jun 2002 20:35:19 +0000 Subject: changes to make it compatible with 64bit gcc llvm-svn: 2789 --- llvm/lib/Analysis/DataStructure/FunctionRepBuilder.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Analysis/DataStructure/FunctionRepBuilder.h') diff --git a/llvm/lib/Analysis/DataStructure/FunctionRepBuilder.h b/llvm/lib/Analysis/DataStructure/FunctionRepBuilder.h index 9eedf0259a8..30e0bb21b6b 100644 --- a/llvm/lib/Analysis/DataStructure/FunctionRepBuilder.h +++ b/llvm/lib/Analysis/DataStructure/FunctionRepBuilder.h @@ -10,6 +10,7 @@ #include "llvm/Analysis/DataStructure.h" #include "llvm/Support/InstVisitor.h" +#include // 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 { // ValueMap - Mapping between values we are processing and the possible // datastructures that they may point to... - map ValueMap; + std::map ValueMap; // CallMap - Keep track of which call nodes correspond to which call insns. // The reverse mapping is stored in the CallDSNodes themselves. // - map CallMap; + std::map CallMap; // Worklist - Vector of (pointer typed) instructions to process still... std::vector WorkList; @@ -87,7 +88,7 @@ public: const PointerValSet &getRetNode() const { return RetNode; } - const map &getValueMap() const { return ValueMap; } + const std::map &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 } -- cgit v1.2.3