diff options
| author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-06 16:05:20 +0000 |
|---|---|---|
| committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-06 16:05:20 +0000 |
| commit | ed7beaa3fa3ce5ed578272e25c2121e24e2ec909 (patch) | |
| tree | 7b909504e941e81cdd394c5dd47494e45e1de203 /llvm/lib/VMCore | |
| parent | 1046c73d1214b8a57e1b6607547259c895b97f2b (diff) | |
| download | bcm5719-llvm-ed7beaa3fa3ce5ed578272e25c2121e24e2ec909.tar.gz bcm5719-llvm-ed7beaa3fa3ce5ed578272e25c2121e24e2ec909.zip | |
Adopting a uniform naming convention for type constructors in bindings.
llvm-svn: 42698
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 1bb8c1784fb..10b226cc7c2 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -68,7 +68,7 @@ LLVMTypeRef LLVMInt16Type() { return (LLVMTypeRef) Type::Int16Ty; } LLVMTypeRef LLVMInt32Type() { return (LLVMTypeRef) Type::Int32Ty; } LLVMTypeRef LLVMInt64Type() { return (LLVMTypeRef) Type::Int64Ty; } -LLVMTypeRef LLVMCreateIntType(unsigned NumBits) { +LLVMTypeRef LLVMIntType(unsigned NumBits) { return wrap(IntegerType::get(NumBits)); } @@ -86,9 +86,9 @@ LLVMTypeRef LLVMPPCFP128Type() { return (LLVMTypeRef) Type::PPC_FP128Ty; } /*--.. Operations on function types ........................................--*/ -LLVMTypeRef LLVMCreateFunctionType(LLVMTypeRef ReturnType, - LLVMTypeRef *ParamTypes, unsigned ParamCount, - int IsVarArg) { +LLVMTypeRef LLVMFunctionType(LLVMTypeRef ReturnType, + LLVMTypeRef *ParamTypes, unsigned ParamCount, + int IsVarArg) { std::vector<const Type*> Tys; for (LLVMTypeRef *I = ParamTypes, *E = ParamTypes + ParamCount; I != E; ++I) Tys.push_back(unwrap(*I)); @@ -117,8 +117,8 @@ void LLVMGetParamTypes(LLVMTypeRef FunctionTy, LLVMTypeRef *Dest) { /*--.. Operations on struct types ..........................................--*/ -LLVMTypeRef LLVMCreateStructType(LLVMTypeRef *ElementTypes, - unsigned ElementCount, int Packed) { +LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, + unsigned ElementCount, int Packed) { std::vector<const Type*> Tys; for (LLVMTypeRef *I = ElementTypes, *E = ElementTypes + ElementCount; I != E; ++I) @@ -144,15 +144,15 @@ int LLVMIsPackedStruct(LLVMTypeRef StructTy) { /*--.. Operations on array, pointer, and vector types (sequence types) .....--*/ -LLVMTypeRef LLVMCreateArrayType(LLVMTypeRef ElementType, unsigned ElementCount){ +LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount){ return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); } -LLVMTypeRef LLVMCreatePointerType(LLVMTypeRef ElementType) { +LLVMTypeRef LLVMPointerType(LLVMTypeRef ElementType) { return wrap(PointerType::get(unwrap(ElementType))); } -LLVMTypeRef LLVMCreateVectorType(LLVMTypeRef ElementType,unsigned ElementCount){ +LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType,unsigned ElementCount){ return wrap(VectorType::get(unwrap(ElementType), ElementCount)); } @@ -173,7 +173,7 @@ unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy) { LLVMTypeRef LLVMVoidType() { return (LLVMTypeRef) Type::VoidTy; } LLVMTypeRef LLVMLabelType() { return (LLVMTypeRef) Type::LabelTy; } -LLVMTypeRef LLVMCreateOpaqueType() { +LLVMTypeRef LLVMOpaqueType() { return wrap(llvm::OpaqueType::get()); } |

