Ty: DIType,
AlwaysPreserve: bool,
Flags: c_uint,
- AddrOps: *const i64,
- AddrOpsCount: c_uint,
ArgNo: c_uint)
-> DIVariable;
InsertAtEnd: BasicBlockRef)
-> ValueRef;
- pub fn LLVMRustDIBuilderInsertDeclareBefore(Builder: DIBuilderRef,
- Val: ValueRef,
- VarInfo: DIVariable,
- AddrOps: *const i64,
- AddrOpsCount: c_uint,
- DL: ValueRef,
- InsertBefore: ValueRef)
- -> ValueRef;
-
pub fn LLVMRustDIBuilderCreateEnumerator(Builder: DIBuilderRef,
Name: *const c_char,
Val: u64)
type_metadata,
cx.sess().opts.optimize != config::OptLevel::No,
0,
- address_operations.as_ptr(),
- address_operations.len() as c_uint,
argument_index)
};
source_loc::set_debug_location(cx, None,
LLVMRustMetadataRef Ty,
bool AlwaysPreserve,
unsigned Flags,
- int64_t* AddrOps,
- unsigned AddrOpsCount,
unsigned ArgNo) {
#if LLVM_VERSION_GE(3, 8)
if (Tag == 0x100) { // DW_TAG_auto_variable
unwrap(InsertAtEnd)));
}
-extern "C" LLVMValueRef LLVMRustDIBuilderInsertDeclareBefore(
- LLVMRustDIBuilderRef Builder,
- LLVMValueRef Val,
- LLVMRustMetadataRef VarInfo,
- int64_t* AddrOps,
- unsigned AddrOpsCount,
- LLVMValueRef DL,
- LLVMValueRef InsertBefore) {
- return wrap(Builder->insertDeclare(
- unwrap(Val),
- unwrap<DILocalVariable>(VarInfo),
- Builder->createExpression(
- llvm::ArrayRef<int64_t>(AddrOps, AddrOpsCount)),
- DebugLoc(cast<MDNode>(unwrap<MetadataAsValue>(DL)->getMetadata())),
- unwrap<Instruction>(InsertBefore)));
-}
-
extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreateEnumerator(
LLVMRustDIBuilderRef Builder,
const char* Name,
return LLVMCommonLinkage;
default:
llvm_unreachable("Invalid LLVMRustLinkage value!");
- }
+ }
}
extern "C" LLVMRustLinkage LLVMRustGetLinkage(LLVMValueRef V) {