Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade LLVM preset to 12.0.1 #1065

Merged
merged 4 commits into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Map `std::vector<cv::Range>` to `RangeVector` in `opencv_core.Mat` for convenience ([issue bytedeco/javacv#1607](https://github.com/bytedeco/javacv/issues/1607))
* Include `genericaliasobject.h`, `context.h`, `tracemalloc.h`, and `datetime.h` for CPython ([issue #1017](https://github.com/bytedeco/javacpp-presets/issues/1017))
* Add samples using LLVM modules to deal with bitcode and object files ([pull #1016](https://github.com/bytedeco/javacpp-presets/pull/1016))
* Upgrade presets for OpenCV 4.5.3, FFmpeg 4.4 ([pull #1030](https://github.com/bytedeco/javacpp-presets/pull/1030)), Spinnaker 2.4.0.143 ([pull #1040](https://github.com/bytedeco/javacpp-presets/pull/1040)), librealsense2 2.44.0 ([pull #1031](https://github.com/bytedeco/javacpp-presets/pull/1031)), Arrow 4.0.1, MKL 2021.3, DNNL 2.3, OpenBLAS 0.3.15, GSL 2.7, CPython 3.9.6, NumPy 1.21.0, SciPy 1.7.0, Gym 0.18.3, LLVM 12.0.0 ([pull #1029](https://github.com/bytedeco/javacpp-presets/pull/1029)), Leptonica 1.81.1, CUDA 11.4.0, cuDNN 8.2.1, NCCL 2.9.9, ONNX 1.9.0, ONNX Runtime 1.8.0, and their dependencies
* Upgrade presets for OpenCV 4.5.3, FFmpeg 4.4 ([pull #1030](https://github.com/bytedeco/javacpp-presets/pull/1030)), Spinnaker 2.4.0.143 ([pull #1040](https://github.com/bytedeco/javacpp-presets/pull/1040)), librealsense2 2.44.0 ([pull #1031](https://github.com/bytedeco/javacpp-presets/pull/1031)), Arrow 4.0.1, MKL 2021.3, DNNL 2.3, OpenBLAS 0.3.15, GSL 2.7, CPython 3.9.6, NumPy 1.21.0, SciPy 1.7.0, Gym 0.18.3, LLVM 12.0.1 ([pull #1065](https://github.com/bytedeco/javacpp-presets/pull/1065)), Leptonica 1.81.1, CUDA 11.4.0, cuDNN 8.2.1, NCCL 2.9.9, ONNX 1.9.0, ONNX Runtime 1.8.0, and their dependencies

### March 8, 2021 version 1.5.5
* Bundle LLD executable in presets for LLVM as required by TVM on Windows
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip
* NumPy 1.21.x https://github.com/numpy/numpy
* SciPy 1.7.x https://github.com/scipy/scipy
* Gym 0.18.x https://github.com/openai/gym
* LLVM 12.x.x http://llvm.org/releases/download.html
* LLVM 12.0.x http://llvm.org/releases/download.html
* libffi 3.4.x https://github.com/libffi/libffi
* libpostal 1.1-alpha https://github.com/openvenues/libpostal
* Leptonica 1.81.x http://www.leptonica.org/download.html
Expand Down
2 changes: 1 addition & 1 deletion arrow/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [[ $PLATFORM == windows* ]]; then
export PYTHON_BIN_PATH=$(which python.exe)
fi

LLVM_VERSION=12.0.0
LLVM_VERSION=12.0.1
OPENSSL_VERSION=1.1.1k
ZLIB_VERSION=1.2.11
PROTO_VERSION=3.13.0
Expand Down
4 changes: 2 additions & 2 deletions llvm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Introduction
------------
This directory contains the JavaCPP Presets module for:

* LLVM 12.0.0 http://llvm.org/
* LLVM 12.0.1 http://llvm.org/

Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.

Expand Down Expand Up @@ -50,7 +50,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>llvm-platform</artifactId>
<version>12.0.0-1.5.6-SNAPSHOT</version>
<version>12.0.1-1.5.6-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
Expand Down
2 changes: 1 addition & 1 deletion llvm/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "$PLATFORM" ]]; then
exit
fi

LLVM_VERSION=12.0.0
LLVM_VERSION=12.0.1
download https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/llvm-project-$LLVM_VERSION.src.tar.xz llvm-project-$LLVM_VERSION.src.tar.xz

mkdir -p $PLATFORM
Expand Down
2 changes: 1 addition & 1 deletion llvm/platform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>org.bytedeco</groupId>
<artifactId>llvm-platform</artifactId>
<version>12.0.0-${project.parent.version}</version>
<version>12.0.1-${project.parent.version}</version>
<name>JavaCPP Presets Platform for LLVM</name>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion llvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>org.bytedeco</groupId>
<artifactId>llvm</artifactId>
<version>12.0.0-${project.parent.version}</version>
<version>12.0.1-${project.parent.version}</version>
<name>JavaCPP Presets for LLVM</name>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion llvm/samples/clang/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>llvm-platform</artifactId>
<version>12.0.0-1.5.6-SNAPSHOT</version>
<version>12.0.1-1.5.6-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
Expand Down
2 changes: 1 addition & 1 deletion llvm/samples/llvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>llvm-platform</artifactId>
<version>12.0.0-1.5.6-SNAPSHOT</version>
<version>12.0.1-1.5.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
Expand Down
2 changes: 1 addition & 1 deletion llvm/samples/polly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>llvm-platform</artifactId>
<version>12.0.0-1.5.6-SNAPSHOT</version>
<version>12.0.1-1.5.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class LLVMJITCSymbolMapPair extends Pointer {
return (LLVMJITCSymbolMapPair)super.position(position);
}
@Override public LLVMJITCSymbolMapPair getPointer(long i) {
return new LLVMJITCSymbolMapPair((Pointer)this).position(position + i);
return new LLVMJITCSymbolMapPair((Pointer)this).offsetAddress(i);
}

public native LLVMOrcSymbolStringPoolEntryRef Name(); public native LLVMJITCSymbolMapPair Name(LLVMOrcSymbolStringPoolEntryRef setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class LLVMJITEvaluatedSymbol extends Pointer {
return (LLVMJITEvaluatedSymbol)super.position(position);
}
@Override public LLVMJITEvaluatedSymbol getPointer(long i) {
return new LLVMJITEvaluatedSymbol((Pointer)this).position(position + i);
return new LLVMJITEvaluatedSymbol((Pointer)this).offsetAddress(i);
}

public native @Cast("LLVMOrcJITTargetAddress") long Address(); public native LLVMJITEvaluatedSymbol Address(long setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class LLVMJITSymbolFlags extends Pointer {
return (LLVMJITSymbolFlags)super.position(position);
}
@Override public LLVMJITSymbolFlags getPointer(long i) {
return new LLVMJITSymbolFlags((Pointer)this).position(position + i);
return new LLVMJITSymbolFlags((Pointer)this).offsetAddress(i);
}

public native @Cast("uint8_t") byte GenericFlags(); public native LLVMJITSymbolFlags GenericFlags(byte setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LLVMMCJITCompilerOptions extends Pointer {
return (LLVMMCJITCompilerOptions)super.position(position);
}
@Override public LLVMMCJITCompilerOptions getPointer(long i) {
return new LLVMMCJITCompilerOptions((Pointer)this).position(position + i);
return new LLVMMCJITCompilerOptions((Pointer)this).offsetAddress(i);
}

public native @Cast("unsigned") int OptLevel(); public native LLVMMCJITCompilerOptions OptLevel(int setter);
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfo1.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LLVMOpInfo1 extends Pointer {
return (LLVMOpInfo1)super.position(position);
}
@Override public LLVMOpInfo1 getPointer(long i) {
return new LLVMOpInfo1((Pointer)this).position(position + i);
return new LLVMOpInfo1((Pointer)this).offsetAddress(i);
}

public native @ByRef LLVMOpInfoSymbol1 AddSymbol(); public native LLVMOpInfo1 AddSymbol(LLVMOpInfoSymbol1 setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class LLVMOpInfoSymbol1 extends Pointer {
return (LLVMOpInfoSymbol1)super.position(position);
}
@Override public LLVMOpInfoSymbol1 getPointer(long i) {
return new LLVMOpInfoSymbol1((Pointer)this).position(position + i);
return new LLVMOpInfoSymbol1((Pointer)this).offsetAddress(i);
}

public native @Cast("uint64_t") long Present(); public native LLVMOpInfoSymbol1 Present(long setter); /* 1 if this symbol is present */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class LLVMOrcCLookupSetElement extends Pointer {
return (LLVMOrcCLookupSetElement)super.position(position);
}
@Override public LLVMOrcCLookupSetElement getPointer(long i) {
return new LLVMOrcCLookupSetElement((Pointer)this).position(position + i);
return new LLVMOrcCLookupSetElement((Pointer)this).offsetAddress(i);
}

public native LLVMOrcSymbolStringPoolEntryRef Name(); public native LLVMOrcCLookupSetElement Name(LLVMOrcSymbolStringPoolEntryRef setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class LTOObjectBuffer extends Pointer {
return (LTOObjectBuffer)super.position(position);
}
@Override public LTOObjectBuffer getPointer(long i) {
return new LTOObjectBuffer((Pointer)this).position(position + i);
return new LTOObjectBuffer((Pointer)this).offsetAddress(i);
}

public native @Cast("const char*") BytePointer Buffer(); public native LTOObjectBuffer Buffer(BytePointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CXCodeCompleteResults extends Pointer {
return (CXCodeCompleteResults)super.position(position);
}
@Override public CXCodeCompleteResults getPointer(long i) {
return new CXCodeCompleteResults((Pointer)this).position(position + i);
return new CXCodeCompleteResults((Pointer)this).offsetAddress(i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXComment.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class CXComment extends Pointer {
return (CXComment)super.position(position);
}
@Override public CXComment getPointer(long i) {
return new CXComment((Pointer)this).position(position + i);
return new CXComment((Pointer)this).offsetAddress(i);
}

public native @Const Pointer ASTNode(); public native CXComment ASTNode(Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXCompletionResult extends Pointer {
return (CXCompletionResult)super.position(position);
}
@Override public CXCompletionResult getPointer(long i) {
return new CXCompletionResult((Pointer)this).position(position + i);
return new CXCompletionResult((Pointer)this).offsetAddress(i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursor.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class CXCursor extends Pointer {
return (CXCursor)super.position(position);
}
@Override public CXCursor getPointer(long i) {
return new CXCursor((Pointer)this).position(position + i);
return new CXCursor((Pointer)this).offsetAddress(i);
}

public native @Cast("CXCursorKind") int kind(); public native CXCursor kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXCursorAndRangeVisitor extends Pointer {
return (CXCursorAndRangeVisitor)super.position(position);
}
@Override public CXCursorAndRangeVisitor getPointer(long i) {
return new CXCursorAndRangeVisitor((Pointer)this).position(position + i);
return new CXCursorAndRangeVisitor((Pointer)this).offsetAddress(i);
}

public native Pointer context(); public native CXCursorAndRangeVisitor context(Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CXFileUniqueID extends Pointer {
return (CXFileUniqueID)super.position(position);
}
@Override public CXFileUniqueID getPointer(long i) {
return new CXFileUniqueID((Pointer)this).position(position + i);
return new CXFileUniqueID((Pointer)this).offsetAddress(i);
}

public native @Cast("unsigned long long") long data(int i); public native CXFileUniqueID data(int i, long setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxAttrInfo extends Pointer {
return (CXIdxAttrInfo)super.position(position);
}
@Override public CXIdxAttrInfo getPointer(long i) {
return new CXIdxAttrInfo((Pointer)this).position(position + i);
return new CXIdxAttrInfo((Pointer)this).offsetAddress(i);
}

public native @Cast("CXIdxAttrKind") int kind(); public native CXIdxAttrInfo kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxBaseClassInfo extends Pointer {
return (CXIdxBaseClassInfo)super.position(position);
}
@Override public CXIdxBaseClassInfo getPointer(long i) {
return new CXIdxBaseClassInfo((Pointer)this).position(position + i);
return new CXIdxBaseClassInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxEntityInfo base(); public native CXIdxBaseClassInfo base(CXIdxEntityInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxCXXClassDeclInfo extends Pointer {
return (CXIdxCXXClassDeclInfo)super.position(position);
}
@Override public CXIdxCXXClassDeclInfo getPointer(long i) {
return new CXIdxCXXClassDeclInfo((Pointer)this).position(position + i);
return new CXIdxCXXClassDeclInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxDeclInfo declInfo(); public native CXIdxCXXClassDeclInfo declInfo(CXIdxDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxContainerInfo extends Pointer {
return (CXIdxContainerInfo)super.position(position);
}
@Override public CXIdxContainerInfo getPointer(long i) {
return new CXIdxContainerInfo((Pointer)this).position(position + i);
return new CXIdxContainerInfo((Pointer)this).offsetAddress(i);
}

public native @ByRef CXCursor cursor(); public native CXIdxContainerInfo cursor(CXCursor setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxDeclInfo extends Pointer {
return (CXIdxDeclInfo)super.position(position);
}
@Override public CXIdxDeclInfo getPointer(long i) {
return new CXIdxDeclInfo((Pointer)this).position(position + i);
return new CXIdxDeclInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxEntityInfo entityInfo(); public native CXIdxDeclInfo entityInfo(CXIdxEntityInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxEntityInfo extends Pointer {
return (CXIdxEntityInfo)super.position(position);
}
@Override public CXIdxEntityInfo getPointer(long i) {
return new CXIdxEntityInfo((Pointer)this).position(position + i);
return new CXIdxEntityInfo((Pointer)this).offsetAddress(i);
}

public native @Cast("CXIdxEntityKind") int kind(); public native CXIdxEntityInfo kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxEntityRefInfo extends Pointer {
return (CXIdxEntityRefInfo)super.position(position);
}
@Override public CXIdxEntityRefInfo getPointer(long i) {
return new CXIdxEntityRefInfo((Pointer)this).position(position + i);
return new CXIdxEntityRefInfo((Pointer)this).offsetAddress(i);
}

public native @Cast("CXIdxEntityRefKind") int kind(); public native CXIdxEntityRefInfo kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxIBOutletCollectionAttrInfo extends Pointer {
return (CXIdxIBOutletCollectionAttrInfo)super.position(position);
}
@Override public CXIdxIBOutletCollectionAttrInfo getPointer(long i) {
return new CXIdxIBOutletCollectionAttrInfo((Pointer)this).position(position + i);
return new CXIdxIBOutletCollectionAttrInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxAttrInfo attrInfo(); public native CXIdxIBOutletCollectionAttrInfo attrInfo(CXIdxAttrInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxImportedASTFileInfo extends Pointer {
return (CXIdxImportedASTFileInfo)super.position(position);
}
@Override public CXIdxImportedASTFileInfo getPointer(long i) {
return new CXIdxImportedASTFileInfo((Pointer)this).position(position + i);
return new CXIdxImportedASTFileInfo((Pointer)this).offsetAddress(i);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxIncludedFileInfo extends Pointer {
return (CXIdxIncludedFileInfo)super.position(position);
}
@Override public CXIdxIncludedFileInfo getPointer(long i) {
return new CXIdxIncludedFileInfo((Pointer)this).position(position + i);
return new CXIdxIncludedFileInfo((Pointer)this).offsetAddress(i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxLoc.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxLoc extends Pointer {
return (CXIdxLoc)super.position(position);
}
@Override public CXIdxLoc getPointer(long i) {
return new CXIdxLoc((Pointer)this).position(position + i);
return new CXIdxLoc((Pointer)this).offsetAddress(i);
}

public native Pointer ptr_data(int i); public native CXIdxLoc ptr_data(int i, Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCCategoryDeclInfo extends Pointer {
return (CXIdxObjCCategoryDeclInfo)super.position(position);
}
@Override public CXIdxObjCCategoryDeclInfo getPointer(long i) {
return new CXIdxObjCCategoryDeclInfo((Pointer)this).position(position + i);
return new CXIdxObjCCategoryDeclInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxObjCContainerDeclInfo containerInfo(); public native CXIdxObjCCategoryDeclInfo containerInfo(CXIdxObjCContainerDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCContainerDeclInfo extends Pointer {
return (CXIdxObjCContainerDeclInfo)super.position(position);
}
@Override public CXIdxObjCContainerDeclInfo getPointer(long i) {
return new CXIdxObjCContainerDeclInfo((Pointer)this).position(position + i);
return new CXIdxObjCContainerDeclInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxDeclInfo declInfo(); public native CXIdxObjCContainerDeclInfo declInfo(CXIdxDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCInterfaceDeclInfo extends Pointer {
return (CXIdxObjCInterfaceDeclInfo)super.position(position);
}
@Override public CXIdxObjCInterfaceDeclInfo getPointer(long i) {
return new CXIdxObjCInterfaceDeclInfo((Pointer)this).position(position + i);
return new CXIdxObjCInterfaceDeclInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxObjCContainerDeclInfo containerInfo(); public native CXIdxObjCInterfaceDeclInfo containerInfo(CXIdxObjCContainerDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCPropertyDeclInfo extends Pointer {
return (CXIdxObjCPropertyDeclInfo)super.position(position);
}
@Override public CXIdxObjCPropertyDeclInfo getPointer(long i) {
return new CXIdxObjCPropertyDeclInfo((Pointer)this).position(position + i);
return new CXIdxObjCPropertyDeclInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxDeclInfo declInfo(); public native CXIdxObjCPropertyDeclInfo declInfo(CXIdxDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCProtocolRefInfo extends Pointer {
return (CXIdxObjCProtocolRefInfo)super.position(position);
}
@Override public CXIdxObjCProtocolRefInfo getPointer(long i) {
return new CXIdxObjCProtocolRefInfo((Pointer)this).position(position + i);
return new CXIdxObjCProtocolRefInfo((Pointer)this).offsetAddress(i);
}

public native @Const CXIdxEntityInfo protocol(); public native CXIdxObjCProtocolRefInfo protocol(CXIdxEntityInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCProtocolRefListInfo extends Pointer {
return (CXIdxObjCProtocolRefListInfo)super.position(position);
}
@Override public CXIdxObjCProtocolRefListInfo getPointer(long i) {
return new CXIdxObjCProtocolRefListInfo((Pointer)this).position(position + i);
return new CXIdxObjCProtocolRefListInfo((Pointer)this).offsetAddress(i);
}

@MemberGetter public native @Const CXIdxObjCProtocolRefInfo protocols(int i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CXPlatformAvailability extends Pointer {
return (CXPlatformAvailability)super.position(position);
}
@Override public CXPlatformAvailability getPointer(long i) {
return new CXPlatformAvailability((Pointer)this).position(position + i);
return new CXPlatformAvailability((Pointer)this).offsetAddress(i);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class CXSourceLocation extends Pointer {
return (CXSourceLocation)super.position(position);
}
@Override public CXSourceLocation getPointer(long i) {
return new CXSourceLocation((Pointer)this).position(position + i);
return new CXSourceLocation((Pointer)this).offsetAddress(i);
}

public native @Const Pointer ptr_data(int i); public native CXSourceLocation ptr_data(int i, Pointer setter);
Expand Down
Loading