OSDN Git Service

X86: Form IMGREL relocations for LLVM Functions
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 6 Mar 2015 08:11:32 +0000 (08:11 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 6 Mar 2015 08:11:32 +0000 (08:11 +0000)
commitee711b5b160c29ac1e106bee72665d1de4896dd3
tree3569c3894069629bf1f62d5b0ccfae8732fbae59
parent02dc4fa6b29426b941a24f790e1c4d9cacad8eea
X86: Form IMGREL relocations for LLVM Functions

We supported forming IMGREL relocations from ConstantExprs involving
__ImageBase if the minuend was a GlobalVariable.  Extend this
functionality to all GlobalObjects.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231456 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetObjectFile.cpp
test/MC/COFF/ir-to-imgrel.ll