From a928403ca41f8816f345550eb184175492b64e30 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2789 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/FunctionRepBuilder.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lib/Analysis/DataStructure/FunctionRepBuilder.cpp') diff --git a/lib/Analysis/DataStructure/FunctionRepBuilder.cpp b/lib/Analysis/DataStructure/FunctionRepBuilder.cpp index 1282d7a3b6..f90ab9ba60 100644 --- a/lib/Analysis/DataStructure/FunctionRepBuilder.cpp +++ b/lib/Analysis/DataStructure/FunctionRepBuilder.cpp @@ -15,6 +15,7 @@ #include "llvm/Constants.h" #include "Support/STLExtras.h" #include +#include // synthesizeNode - Create a new shadow node that is to be linked into this // chain.. @@ -32,8 +33,10 @@ ShadowDSNode *DSNode::synthesizeNode(const Type *Ty, if (SynthNodes[i].first == Ty) return SynthNodes[i].second; // No we haven't. Do so now and add it to our list of saved nodes... + ShadowDSNode *SN = Rep->makeSynthesizedShadow(Ty, this); - SynthNodes.push_back(make_pair(Ty, SN)); + SynthNodes.push_back(std::make_pair(Ty, SN)); + return SN; } @@ -281,10 +284,10 @@ void FunctionRepBuilder::visitStoreInst(StoreInst &SI) { PointerVal Dest = getIndexedPointerDest(PtrPVS[pi], SI); #if 0 - cerr << "Setting Dest:\n"; - Dest.print(cerr); - cerr << "to point to Src:\n"; - SrcPtr.print(cerr); + std::cerr << "Setting Dest:\n"; + Dest.print(std::cerr); + std::cerr << "to point to Src:\n"; + SrcPtr.print(std::cerr); #endif // Add SrcPtr into the Dest field... @@ -338,7 +341,7 @@ FunctionDSGraph::FunctionDSGraph(Function *F) : Func(F) { // at things. They can only point to their node, so there is no use keeping // them. // - for (map::iterator I = ValueMap.begin(), + for (std::map::iterator I = ValueMap.begin(), E = ValueMap.end(); I != E;) if (isa(I->first)) { #if MAP_DOESNT_HAVE_BROKEN_ERASE_MEMBER -- cgit v1.2.3-18-g5258