Recommit [X86][MC][NFC] Reduce the parameters of functions in X86MCCodeEmitter(Part II)
authorShengchen Kan <shengchen.kan@intel.com>
Fri, 17 Apr 2020 03:17:38 +0000 (11:17 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Fri, 17 Apr 2020 11:42:35 +0000 (19:42 +0800)
commitc82faea9fb58d6b02cec3de8118a265395024792
treeef42969a7c7167f71653af979cb895bf590b78c3
parentde94715b64ba048728cb1c4ba88a5ac51066d61b
Recommit [X86][MC][NFC] Reduce the parameters of functions in X86MCCodeEmitter(Part II)

Previous patch didn't handle the early return in `emitREXPrefix` correctly,
which causes REX prefix was not emitted for instruction without
operands. This patch includes the fix for that.
llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp