mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[OCaml] Add GlobalIFunc value kind to OCaml API
Summary: The GlobalIFunc value kind has not yet been added to the OCaml API. This patch only extends the enum, so that e.g. classify_value will not crash. No support for manipulating or building GlobalIFuncs is added at this point. Reviewers: whitequark, deadalnix Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D52198 llvm-svn: 342429
This commit is contained in:
parent
bbffcf06c9
commit
9fe59eb29b
@ -310,6 +310,7 @@ module ValueKind = struct
|
||||
| ConstantVector
|
||||
| Function
|
||||
| GlobalAlias
|
||||
| GlobalIFunc
|
||||
| GlobalVariable
|
||||
| UndefValue
|
||||
| Instruction of Opcode.t
|
||||
|
@ -343,6 +343,7 @@ module ValueKind : sig
|
||||
| ConstantVector
|
||||
| Function
|
||||
| GlobalAlias
|
||||
| GlobalIFunc
|
||||
| GlobalVariable
|
||||
| UndefValue
|
||||
| Instruction of Opcode.t
|
||||
|
@ -619,6 +619,7 @@ enum ValueKind {
|
||||
ConstantVector,
|
||||
Function,
|
||||
GlobalAlias,
|
||||
GlobalIFunc,
|
||||
GlobalVariable,
|
||||
UndefValue,
|
||||
Instruction
|
||||
@ -654,6 +655,7 @@ CAMLprim value llvm_classify_value(LLVMValueRef Val) {
|
||||
if (LLVMIsAGlobalValue(Val)) {
|
||||
DEFINE_CASE(Val, Function);
|
||||
DEFINE_CASE(Val, GlobalAlias);
|
||||
DEFINE_CASE(Val, GlobalIFunc);
|
||||
DEFINE_CASE(Val, GlobalVariable);
|
||||
}
|
||||
DEFINE_CASE(Val, Argument);
|
||||
|
@ -1465,6 +1465,7 @@ LLVMTypeRef LLVMX86MMXType(void);
|
||||
macro(ConstantVector) \
|
||||
macro(GlobalValue) \
|
||||
macro(GlobalAlias) \
|
||||
macro(GlobalIFunc) \
|
||||
macro(GlobalObject) \
|
||||
macro(Function) \
|
||||
macro(GlobalVariable) \
|
||||
|
Loading…
Reference in New Issue
Block a user