diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-03 22:26:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-03 22:26:30 +0000 |
commit | e9bb2df410f7a22decad9a883f7139d5857c1520 (patch) | |
tree | f6ca07fb5f5de1df8a2572142a707f56bf25c6e6 /lib/Transforms/Utils/LowerAllocations.cpp | |
parent | 9ef18310beaabe7abfa712a3c761036ea2d17caa (diff) |
Rename ConstPoolVal -> Constant
Rename ConstPool* -> Constant*
Rename ConstPoolVals.h -> ConstantVals.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 2385fee7aa..ceb45f59c6 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -13,7 +13,7 @@ #include "llvm/iMemory.h" #include "llvm/iOther.h" #include "llvm/SymbolTable.h" -#include "llvm/ConstPoolVals.h" +#include "llvm/ConstantVals.h" // doPassInitialization - For the lower allocations pass, this ensures that a // module contains a declaration for a malloc and a free function. @@ -80,7 +80,7 @@ bool LowerAllocations::doPerMethodWork(Method *M) { unsigned Size = DataLayout.getTypeSize(AllocTy); // malloc(type) becomes sbyte *malloc(constint) - Value *MallocArg = ConstPoolUInt::get(Type::UIntTy, Size); + Value *MallocArg = ConstantUInt::get(Type::UIntTy, Size); if (MI->getNumOperands() && Size == 1) { MallocArg = MI->getOperand(0); // Operand * 1 = Operand } else if (MI->getNumOperands()) { |