Use constants for DWARF opcodes, instead of FFI calls
This commit is contained in:
@@ -27,3 +27,11 @@ declare_constant!(DW_ATE_float: c_uint);
|
||||
declare_constant!(DW_ATE_signed: c_uint);
|
||||
declare_constant!(DW_ATE_unsigned: c_uint);
|
||||
declare_constant!(DW_ATE_UTF: c_uint);
|
||||
|
||||
// DWARF expression operators.
|
||||
declare_constant!(DW_OP_deref: u64);
|
||||
declare_constant!(DW_OP_plus_uconst: u64);
|
||||
/// Defined by LLVM in `llvm/include/llvm/BinaryFormat/Dwarf.h`.
|
||||
/// Double-checked by a static assertion in `RustWrapper.cpp`.
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub(crate) const DW_OP_LLVM_fragment: u64 = 0x1000;
|
||||
|
||||
Reference in New Issue
Block a user