Cleanup and test X86AsmPrinter::printPCRelImm.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Nov 2013 06:53:13 +0000 (06:53 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Nov 2013 06:53:13 +0000 (06:53 +0000)
commitef8a810cd7a55ebd786c58e1e5001d920372a983
tree74f8f9f2832e6cf31d3328cf5b171d1065e938b4
parente50e1603485d7f80efb3d9d47de4f9b91157f8a6
Cleanup and test X86AsmPrinter::printPCRelImm.

It is only used for asm printing.

On X86 we put basic block addresses on register before passing them to inline
asm, so the MO_MachineBasicBlock case was dead.

MO_ExternalSymbol was dead since any symbol being passed to inline asm
is represented as MO_GlobalAddress.

The MO_GlobalAddress and MO_Register cases were not tested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195824 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86AsmPrinter.cpp
test/CodeGen/X86/inline-asm.ll