debuginfo: Remove some outdated stuff from LLVM DIBuilder binding.
This commit is contained in:
parent
d34318dd53
commit
db4a9b3446
3 changed files with 1 additions and 33 deletions
|
@ -1817,8 +1817,6 @@ extern {
|
||||||
Ty: DIType,
|
Ty: DIType,
|
||||||
AlwaysPreserve: bool,
|
AlwaysPreserve: bool,
|
||||||
Flags: c_uint,
|
Flags: c_uint,
|
||||||
AddrOps: *const i64,
|
|
||||||
AddrOpsCount: c_uint,
|
|
||||||
ArgNo: c_uint)
|
ArgNo: c_uint)
|
||||||
-> DIVariable;
|
-> DIVariable;
|
||||||
|
|
||||||
|
@ -1855,15 +1853,6 @@ extern {
|
||||||
InsertAtEnd: BasicBlockRef)
|
InsertAtEnd: BasicBlockRef)
|
||||||
-> ValueRef;
|
-> 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,
|
pub fn LLVMRustDIBuilderCreateEnumerator(Builder: DIBuilderRef,
|
||||||
Name: *const c_char,
|
Name: *const c_char,
|
||||||
Val: u64)
|
Val: u64)
|
||||||
|
|
|
@ -482,8 +482,6 @@ pub fn declare_local<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
|
||||||
type_metadata,
|
type_metadata,
|
||||||
cx.sess().opts.optimize != config::OptLevel::No,
|
cx.sess().opts.optimize != config::OptLevel::No,
|
||||||
0,
|
0,
|
||||||
address_operations.as_ptr(),
|
|
||||||
address_operations.len() as c_uint,
|
|
||||||
argument_index)
|
argument_index)
|
||||||
};
|
};
|
||||||
source_loc::set_debug_location(cx, None,
|
source_loc::set_debug_location(cx, None,
|
||||||
|
|
|
@ -562,8 +562,6 @@ extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreateVariable(
|
||||||
LLVMRustMetadataRef Ty,
|
LLVMRustMetadataRef Ty,
|
||||||
bool AlwaysPreserve,
|
bool AlwaysPreserve,
|
||||||
unsigned Flags,
|
unsigned Flags,
|
||||||
int64_t* AddrOps,
|
|
||||||
unsigned AddrOpsCount,
|
|
||||||
unsigned ArgNo) {
|
unsigned ArgNo) {
|
||||||
#if LLVM_VERSION_GE(3, 8)
|
#if LLVM_VERSION_GE(3, 8)
|
||||||
if (Tag == 0x100) { // DW_TAG_auto_variable
|
if (Tag == 0x100) { // DW_TAG_auto_variable
|
||||||
|
@ -645,23 +643,6 @@ extern "C" LLVMValueRef LLVMRustDIBuilderInsertDeclareAtEnd(
|
||||||
unwrap(InsertAtEnd)));
|
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(
|
extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreateEnumerator(
|
||||||
LLVMRustDIBuilderRef Builder,
|
LLVMRustDIBuilderRef Builder,
|
||||||
const char* Name,
|
const char* Name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue