[ARM] [MC] Refactor the constant pool classes
authorWeiming Zhao <weimingz@codeaurora.org>
Wed, 18 Jun 2014 18:17:25 +0000 (18:17 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Wed, 18 Jun 2014 18:17:25 +0000 (18:17 +0000)
commit8c89973462407b8b458174e1e6beb853575d3cf6
tree71a155ee6773454c05fc04d63ed8a6b5d1e4b615
parentcaaa5f55b6c260f4c44ed7b935aed7b2fb65e2ed
[ARM] [MC] Refactor the constant pool classes

ARMTargetStreamer implements ConstantPool and AssmeblerConstantPools
to keep track of assembler-generated constant pools that are used for
ldr-pseudo.

When implementing ldr-pseudo for AArch64, these two classes can be reused.
So this patch factors them out from ARM target to the general MC lib.

llvm-svn: 211198
llvm/include/llvm/MC/ConstantPools.h [new file with mode: 0644]
llvm/lib/MC/CMakeLists.txt
llvm/lib/MC/ConstantPools.cpp [new file with mode: 0644]
llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp