aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/FunctionRepBuilder.cpp
diff options
context:
space:
mode:
authorAnand Shukla <ashukla@cs.uiuc.edu>2002-06-25 20:35:19 +0000
committerAnand Shukla <ashukla@cs.uiuc.edu>2002-06-25 20:35:19 +0000
commita928403ca41f8816f345550eb184175492b64e30 (patch)
treef276467ed7d172cbf1cfd7b1983f9340ab3f7284 /lib/Analysis/DataStructure/FunctionRepBuilder.cpp
parentadd9643e92ad5acfff2bd9a6594dbdc38b5f3dab (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.cpp')
-rw-r--r--lib/Analysis/DataStructure/FunctionRepBuilder.cpp15
1 files changed, 9 insertions, 6 deletions
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 <algorithm>
+#include <iostream>
// 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<Value*, PointerValSet>::iterator I = ValueMap.begin(),
+ for (std::map<Value*, PointerValSet>::iterator I = ValueMap.begin(),
E = ValueMap.end(); I != E;)
if (isa<GlobalValue>(I->first)) {
#if MAP_DOESNT_HAVE_BROKEN_ERASE_MEMBER