add an API so target-independent codegen can determine if a constant
authorChris Lattner <sabre@nondot.org>
Tue, 21 Jul 2009 23:34:23 +0000 (23:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Jul 2009 23:34:23 +0000 (23:34 +0000)
commitcb4596364369ea36ff5675eb12fc62d0c6f1f0dd
tree5bd26e1b7a48d8a44712c5982038743158ad0bf1
parentce9fe9fae5f2ac1650fe2aa6ccf6dcabbb424f7c
add an API so target-independent codegen can determine if a constant
pool entry will require relocations against it.  I implemented this
conservatively for ARM, someone who is knowledgable about it should
see if this can be improved.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76678 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineConstantPool.h
lib/CodeGen/MachineFunction.cpp
lib/Target/ARM/ARMConstantPoolValue.h