OSDN Git Service

Lower X86::MORESTACK_RET and X86::MORESTACK_RET_RESTORE_R10 in
authorLang Hames <lhames@gmail.com>
Mon, 11 Nov 2013 23:00:41 +0000 (23:00 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 11 Nov 2013 23:00:41 +0000 (23:00 +0000)
commite7e66cfe9afba62be02ea284d81c4c803f3a13e9
tree017129ed40c501a5e9fe66bfd2a7f275b0a42956
parent01846af6ed371ebe2dba80cc8cd286b2631d4051
Lower X86::MORESTACK_RET and X86::MORESTACK_RET_RESTORE_R10 in
X86AsmPrinter::EmitInstruction, rather than X86MCInstLower::Lower.

The aim is to improve the reusability of the X86MCInstLower class by making it
more function-like. The X86::MORESTACK_RET_RESTORE_R10 pseudo broke the
function model by emitting an extra instruction to the MCStreamer attached to
the AsmPrinter.

The patch should have no impact on generated code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194431 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86MCInstLower.cpp