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
diff --git a/lib/Analysis/DataStructure/FunctionRepBuilder.cpp b/lib/Analysis/DataStructure/FunctionRepBuilder.cpp
index 1282d7a..f90ab9b 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 @@
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 @@
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 @@
// 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