[llvm-commits] CVS: llvm/lib/Transforms/IPO/PoolAllocate.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 20 09:38:01 PDT 2003


Changes in directory llvm/lib/Transforms/IPO:

PoolAllocate.cpp updated: 1.9 -> 1.10

---
Log message:

Fix the build.  :(


---
Diffs of the changes:

Index: llvm/lib/Transforms/IPO/PoolAllocate.cpp
diff -u llvm/lib/Transforms/IPO/PoolAllocate.cpp:1.9 llvm/lib/Transforms/IPO/PoolAllocate.cpp:1.10
--- llvm/lib/Transforms/IPO/PoolAllocate.cpp:1.9	Thu Jun 19 16:15:26 2003
+++ llvm/lib/Transforms/IPO/PoolAllocate.cpp	Fri Jun 20 09:36:52 2003
@@ -85,7 +85,7 @@
 	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 @@
 				 (&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 @@
   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");





More information about the llvm-commits mailing list