Skip to content

Commit c5ce8d5

Browse files
committed
Rename ctx_version to abi_version in HPy LLVM context
1 parent 67566f5 commit c5ce8d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/HPyContextMember.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
public enum HPyContextMember implements HPyUpcall {
8888
NAME("name"),
8989
PRIVATE("_private"),
90-
CTX_VERSION("ctx_version"),
90+
ABI_VERSION("abi_version"),
9191

9292
// {{start ctx members}}
9393
// @formatter:off

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/llvm/GraalHPyLLVMContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ private Object[] createMembers(TruffleString name) {
466466
Object[] members = new Object[HPyContextMember.VALUES.length];
467467

468468
members[HPyContextMember.NAME.ordinal()] = new CStringWrapper(name);
469-
members[HPyContextMember.CTX_VERSION.ordinal()] = 1;
469+
// TODO(fa): we should use the value of macro HPY_ABI_VERSION here
470+
members[HPyContextMember.ABI_VERSION.ordinal()] = 0;
470471

471472
// {{start llvm ctx init}}
472473
// @formatter:off

0 commit comments

Comments
 (0)