[llvm-commits] [poolalloc] r56653 - /poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
John Criswell
criswell at uiuc.edu
Fri Sep 26 08:46:48 PDT 2008
Author: criswell
Date: Fri Sep 26 10:46:45 2008
New Revision: 56653
URL: http://llvm.org/viewvc/llvm-project?rev=56653&view=rev
Log:
Updated code to the latest API in LLVM.
Modified:
poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp?rev=56653&r1=56652&r2=56653&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Fri Sep 26 10:46:45 2008
@@ -429,11 +429,11 @@
// verbatim. This is incorrect; each attribute should be shifted one so
// that the pool descriptor has no attributes.
//
- const PAListPtr OldAttrs = New->getParamAttrs();
+ const AttrListPtr OldAttrs = New->getAttributes();
if (!OldAttrs.isEmpty()) {
- PAListPtr NewAttrsVector;
+ AttrListPtr NewAttrsVector;
for (unsigned index = 0; index < OldAttrs.getNumSlots(); ++index) {
- const FnAttributeWithIndex & PAWI = OldAttrs.getSlot(index);
+ const AttributeWithIndex & PAWI = OldAttrs.getSlot(index);
unsigned argIndex = PAWI.Index;
// If it's not the return value, move the attribute to the next
@@ -445,7 +445,7 @@
}
// Assign the new attributes to the function clone
- New->setParamAttrs (NewAttrsVector);
+ New->setAttributes (NewAttrsVector);
}
// Invert the ValueMap into the NewToOldValueMap
More information about the llvm-commits
mailing list