diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-07-12 14:06:48 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-07-12 14:06:48 +0000 |
| commit | b804a2b751ac0d1a5673ec395c4cecb326e73dfb (patch) | |
| tree | 3f55036b549a4067ca1c1c12cf860e118e229e1c /llvm/lib/VMCore/Core.cpp | |
| parent | 0a33f7e678e8d778e499ad42e0b610b15f5ba772 (diff) | |
| download | bcm5719-llvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.tar.gz bcm5719-llvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.zip | |
Second attempt at de-constifying LLVM Types in FunctionType::get(),
StructType::get() and TargetData::getIntPtrType().
llvm-svn: 134982
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index d9ced94134a..15d27233f22 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -260,7 +260,7 @@ LLVMTypeRef LLVMX86MMXType(void) { LLVMTypeRef LLVMFunctionType(LLVMTypeRef ReturnType, LLVMTypeRef *ParamTypes, unsigned ParamCount, LLVMBool IsVarArg) { - std::vector<const Type*> Tys; + std::vector<Type*> Tys; for (LLVMTypeRef *I = ParamTypes, *E = ParamTypes + ParamCount; I != E; ++I) Tys.push_back(unwrap(*I)); @@ -290,7 +290,7 @@ void LLVMGetParamTypes(LLVMTypeRef FunctionTy, LLVMTypeRef *Dest) { LLVMTypeRef LLVMStructTypeInContext(LLVMContextRef C, LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed) { - std::vector<const Type*> Tys; + std::vector<Type*> Tys; for (LLVMTypeRef *I = ElementTypes, *E = ElementTypes + ElementCount; I != E; ++I) Tys.push_back(unwrap(*I)); |

