OSDN Git Service

[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)
commitde04c485787ae207b035a6850e6449495ff8e65d
treef0367f66f3785486747a2e341a666d0a877e7fe4
parent7ec69f6e10840562dca6b557e28f1b6e784a3328
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211198 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/ConstantPools.h [new file with mode: 0644]
lib/MC/CMakeLists.txt
lib/MC/ConstantPools.cpp [new file with mode: 0644]
lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp