X86: Split the relocation selection up
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 8 Apr 2014 02:15:13 +0000 (02:15 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 8 Apr 2014 02:15:13 +0000 (02:15 +0000)
commit2424511b6f181fd85769fb4f1fdf4fea6f77cc0b
tree77b28685d7037173588edf2b6a85d1e5805146ef
parentba1895c16d925f6ca252f6752c63ab00d94d1872
X86: Split the relocation selection up

Before, we would have conditional operators where one side of the
operator would be of type RelocationTypeAMD64 and the other is of type
RelocationTypeI386.  GCC would noisly warn with -Wenum-compare
diagnostic.

Instead, refactor the code so it is more like the X86 ELF object writer.

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