mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Check properly has use list.
This commit is contained in:
@@ -75,6 +75,7 @@ bool llvm_link_mingw(const char **args, int arg_count, const char **error_string
|
||||
bool llvm_ar(const char *out_name, const char **args, size_t count, int ArFormat);
|
||||
|
||||
LLVMValueRef LLVMConstBswap(LLVMValueRef ConstantVal);
|
||||
bool LLVMHasUseList(LLVMValueRef value);
|
||||
void LLVMBuilderSetFastMathFlags(LLVMBuilderRef Builder, FastMathOption option);
|
||||
void LLVMSetDSOLocal(LLVMValueRef Global, bool value);
|
||||
void LLVMSetTargetMachineUseInitArray(LLVMTargetMachineRef ref, bool use_init_array);
|
||||
|
||||
@@ -356,6 +356,12 @@ void LLVMBuilderSetFastMathFlags(LLVMBuilderRef Builder, FastMathOption option)
|
||||
llvm::unwrap(Builder)->setFastMathFlags(math_flags);
|
||||
}
|
||||
|
||||
bool LLVMHasUseList(LLVMValueRef value)
|
||||
{
|
||||
llvm::Value *val = llvm::unwrap<llvm::Value>(value);
|
||||
return val->hasUseList();
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMConstBswap(LLVMValueRef ConstantVal)
|
||||
{
|
||||
llvm::Constant *Val = llvm::unwrap<llvm::Constant>(ConstantVal);
|
||||
|
||||
Reference in New Issue
Block a user