OSDN Git Service

Merging r341512:
authorHans Wennborg <hans@hanshq.net>
Thu, 6 Sep 2018 08:58:13 +0000 (08:58 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 6 Sep 2018 08:58:13 +0000 (08:58 +0000)
commita5b9a59eac7814d1276784cec74bbcfd6449d318
tree38cc0a0f142f9236dec3e3b8dfb9db17744e6cbb
parent033c77236b747f9da9e1709e66cc6708cf3e8aca
Merging r341512:
------------------------------------------------------------------------
r341512 | ctopper | 2018-09-06 04:03:14 +0200 (Thu, 06 Sep 2018) | 7 lines

[X86][Assembler] Allow %eip as a register in 32-bit mode for .cfi directives.

This basically reverts a change made in r336217, but improves the text of the error message for not allowing IP-relative addressing in 32-bit mode.

Fixes PR38826.

Patch by Iain Sandoe.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@341530 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/CodeGen/X86/eip-addressing-i386.ll
test/MC/X86/pr38826.s [new file with mode: 0644]
test/MC/X86/x86_errors.s