Index: src/IceTargetLoweringX8632Traits.h |
diff --git a/src/IceTargetLoweringX8632Traits.h b/src/IceTargetLoweringX8632Traits.h |
index b0738811f32281ab40f93076833a5bb8133202f7..d02f69a1d7c02076b441b877c5fecf48a5864241 100644 |
--- a/src/IceTargetLoweringX8632Traits.h |
+++ b/src/IceTargetLoweringX8632Traits.h |
@@ -68,6 +68,8 @@ template <> struct MachineTraits<TargetX8632> { |
using Cond = ::Ice::CondX86; |
using RegisterSet = ::Ice::RegX8632; |
+ static const SizeT StackPtr = RegX8632::Reg_esp; |
+ static const SizeT FramePtr = RegX8632::Reg_ebp; |
static const GPRRegister Encoded_Reg_Accumulator = RegX8632::Encoded_Reg_eax; |
static const GPRRegister Encoded_Reg_Counter = RegX8632::Encoded_Reg_ecx; |
static const FixupKind PcRelFixup = llvm::ELF::R_386_PC32; |
@@ -577,6 +579,14 @@ template <> struct MachineTraits<TargetX8632> { |
} |
} |
+ static int32_t getRaxOrDie() { |
+ llvm::report_fatal_error("no rax in non-64-bit mode."); |
+ } |
+ |
+ static int32_t getRdxOrDie() { |
+ llvm::report_fatal_error("no rdx in non-64-bit mode."); |
+ } |
+ |
/// The maximum number of arguments to pass in XMM registers |
static const uint32_t X86_MAX_XMM_ARGS = 4; |
/// The maximum number of arguments to pass in GPR registers |