From 1ce780cd6a66a289b0422298871d61392ad3ec2a Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 14 Aug 2018 17:14:44 -0400 Subject: Adding LLIL_RELOC_PTR --- lowlevelilinstruction.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lowlevelilinstruction.cpp') diff --git a/lowlevelilinstruction.cpp b/lowlevelilinstruction.cpp index 5f5dc397..4e0901f3 100644 --- a/lowlevelilinstruction.cpp +++ b/lowlevelilinstruction.cpp @@ -171,6 +171,7 @@ unordered_map> {LLIL_MEM_PHI, {DestMemoryVersionLowLevelOperandUsage, SourceMemoryVersionsLowLevelOperandUsage}}, {LLIL_CONST, {ConstantLowLevelOperandUsage}}, {LLIL_CONST_PTR, {ConstantLowLevelOperandUsage}}, + {LLIL_RELOC_PTR, {ConstantLowLevelOperandUsage}}, {LLIL_FLOAT_CONST, {ConstantLowLevelOperandUsage}}, {LLIL_ADD, {LeftExprLowLevelOperandUsage, RightExprLowLevelOperandUsage}}, {LLIL_SUB, {LeftExprLowLevelOperandUsage, RightExprLowLevelOperandUsage}}, @@ -2113,6 +2114,8 @@ ExprId LowLevelILInstruction::CopyTo(LowLevelILFunction* dest, return dest->Const(size, GetConstant(), *this); case LLIL_CONST_PTR: return dest->ConstPointer(size, GetConstant(), *this); + case LLIL_RELOC_PTR: + return dest->ConstPointer(size, GetConstant(), *this); case LLIL_FLOAT_CONST: return dest->FloatConstRaw(size, GetConstant(), *this); case LLIL_POP: @@ -2894,6 +2897,12 @@ ExprId LowLevelILFunction::ConstPointer(size_t size, uint64_t val, const ILSourc } +ExprId LowLevelILFunction::RelocationPointer(size_t size, uint64_t val, const ILSourceLocation& loc) +{ + return AddExprWithLocation(LLIL_RELOC_PTR, loc, size, 0, val); +} + + ExprId LowLevelILFunction::FloatConstRaw(size_t size, uint64_t val, const ILSourceLocation& loc) { return AddExprWithLocation(LLIL_FLOAT_CONST, loc, size, 0, val); -- cgit v1.3.1