diff options
author | Eric Christopher <echristo@apple.com> | 2010-06-08 22:57:33 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-06-08 22:57:33 +0000 |
commit | 497f1eb2b89721e81b65237df90d23cb60de16b0 (patch) | |
tree | 0af3918c4b15bada5911c4566523228088b78f5a /lib | |
parent | 6335ac67b60c69c7314b1fb16721ae4a51043fc0 (diff) | |
download | external_llvm-497f1eb2b89721e81b65237df90d23cb60de16b0.zip external_llvm-497f1eb2b89721e81b65237df90d23cb60de16b0.tar.gz external_llvm-497f1eb2b89721e81b65237df90d23cb60de16b0.tar.bz2 |
Split out these asserts so it's more apparent why we're not assembling
that rip-relative address when executing in 32-bit mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86MCCodeEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86MCCodeEmitter.cpp b/lib/Target/X86/X86MCCodeEmitter.cpp index f97ac2f..d105b5d 100644 --- a/lib/Target/X86/X86MCCodeEmitter.cpp +++ b/lib/Target/X86/X86MCCodeEmitter.cpp @@ -202,8 +202,8 @@ void X86MCCodeEmitter::EmitMemModRMByte(const MCInst &MI, unsigned Op, // Handle %rip relative addressing. if (BaseReg == X86::RIP) { // [disp32+RIP] in X86-64 mode - assert(IndexReg.getReg() == 0 && Is64BitMode && - "Invalid rip-relative address"); + assert(Is64BitMode && "Rip-relative addressing requires 64-bit mode"); + assert(IndexReg.getReg() == 0 && "Invalid rip-relative address"); EmitByte(ModRMByte(0, RegOpcodeField, 5), CurByte, OS); unsigned FixupKind = X86::reloc_riprel_4byte; |