[llvm-commits] [poolalloc] r56555 - /poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp
John Criswell
criswell at uiuc.edu
Wed Sep 24 08:07:32 PDT 2008
Author: criswell
Date: Wed Sep 24 10:07:32 2008
New Revision: 56555
URL: http://llvm.org/viewvc/llvm-project?rev=56555&view=rev
Log:
Updated to the new LLVM API.
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=56555&r1=56554&r2=56555&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp Wed Sep 24 10:07:32 2008
@@ -24,7 +24,7 @@
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Constants.h"
-#include "llvm/ParameterAttributes.h"
+#include "llvm/Attributes.h"
#include "llvm/Support/CFG.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
@@ -433,7 +433,7 @@
if (!OldAttrs.isEmpty()) {
PAListPtr NewAttrsVector;
for (unsigned index = 0; index < OldAttrs.getNumSlots(); ++index) {
- const ParamAttrsWithIndex & PAWI = OldAttrs.getSlot(index);
+ const FnAttributeWithIndex & PAWI = OldAttrs.getSlot(index);
unsigned argIndex = PAWI.Index;
// If it's not the return value, move the attribute to the next
More information about the llvm-commits
mailing list