summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-20 14:36:52 +0000
committerChris Lattner <sabre@nondot.org>2003-06-20 14:36:52 +0000
commit0024dff76fb7f2d7aab4a3afc99d3884eb47c91c (patch)
tree8658d757c58f88684ed572e0541ecbcc64931626 /llvm/lib/Transforms
parentf6aaa90e8d1b58815174b9bd6ef53eb6a3dccf4d (diff)
downloadbcm5719-llvm-0024dff76fb7f2d7aab4a3afc99d3884eb47c91c.tar.gz
bcm5719-llvm-0024dff76fb7f2d7aab4a3afc99d3884eb47c91c.zip
Fix the build. :(
llvm-svn: 6797
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/PoolAllocate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/PoolAllocate.cpp b/llvm/lib/Transforms/IPO/PoolAllocate.cpp
index e4880a5d927..7c4d1c5ad1a 100644
--- a/llvm/lib/Transforms/IPO/PoolAllocate.cpp
+++ b/llvm/lib/Transforms/IPO/PoolAllocate.cpp
@@ -85,7 +85,7 @@ void PoolAllocate::buildIndirectFunctionSets(Module &M) {
if (DSN->isIncomplete())
std::cerr << "Incomplete node " << CSI->getCallInst();
// assert(DSN->isGlobalNode());
- std::vector<GlobalValue*> &Callees = DSN->getGlobals();
+ const std::vector<GlobalValue*> &Callees = DSN->getGlobals();
if (Callees.size() > 0) {
Function *firstCalledF = dyn_cast<Function>(*Callees.begin());
FuncECs.addElement(firstCalledF);
@@ -93,7 +93,7 @@ void PoolAllocate::buildIndirectFunctionSets(Module &M) {
(&CSI->getCallInst(),
firstCalledF));
if (Callees.size() > 1) {
- for (std::vector<GlobalValue*>::iterator CalleesI =
+ for (std::vector<GlobalValue*>::const_iterator CalleesI =
Callees.begin()+1, CalleesE = Callees.end();
CalleesI != CalleesE; ++CalleesI) {
Function *calledF = dyn_cast<Function>(*CalleesI);
@@ -577,7 +577,7 @@ Function* FuncTransform::getFuncClass(Value *V) {
if (!DSN) {
return 0;
}
- std::vector<GlobalValue*> &Callees = DSN->getGlobals();
+ const std::vector<GlobalValue*> &Callees = DSN->getGlobals();
if (Callees.size() > 0) {
Function *calledF = dyn_cast<Function>(*Callees.begin());
assert(PAInfo.FuncECs.findClass(calledF) && "should exist in some eq. class");
OpenPOWER on IntegriCloud