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)
commitcfb01e26bc5c5c485e7f1248ce336b0318983f49
tree3cf3e0e681657eecd32b1e39bd283b99789201e6
parent8be513822cc382337c9bfc33d3c8b220628ab6bc
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.

llvm-svn: 76678
llvm/include/llvm/CodeGen/MachineConstantPool.h
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/Target/ARM/ARMConstantPoolValue.h