[X86] Don't pass getRegisterName from the InstPrinters into EmitAnyX86InstComments...
authorCraig Topper <craig.topper@intel.com>
Thu, 29 Mar 2018 04:14:04 +0000 (04:14 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 29 Mar 2018 04:14:04 +0000 (04:14 +0000)
commita21758fa2c38c1739bf2880e10e1ef8359196601
tree192d20367bd43a399338dedbebf7b11513016a5b
parentfa37026db3169f68cd62023af5cc871dcb7225fc
[X86] Don't pass getRegisterName from the InstPrinters into EmitAnyX86InstComments. Just always use the function from the ATTPrinter. NFC

The IntelPrinter and the ATTPrinter produce the same strings for the same input. We already use the ATTPrinter explicitly in several other places.

llvm-svn: 328762
llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
llvm/lib/Target/X86/InstPrinter/X86InstComments.cpp
llvm/lib/Target/X86/InstPrinter/X86InstComments.h
llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp