diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-01 09:30:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-01 09:30:42 +0000 |
commit | 3320f2a3bfd4daec23ba7ceb50525140cc6316da (patch) | |
tree | d5fcd8bed487b3dae083f47637cec036864054c0 /lib/Target/ARM/ARMConstantPoolValue.h | |
parent | 9c18f51daaf89b9c706aa0557bede2cbb0debb69 (diff) | |
download | llvm-3320f2a3bfd4daec23ba7ceb50525140cc6316da.tar.gz llvm-3320f2a3bfd4daec23ba7ceb50525140cc6316da.tar.bz2 llvm-3320f2a3bfd4daec23ba7ceb50525140cc6316da.tar.xz |
Use the ARMConstantPoolMBB class to handle the MBB values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantPoolValue.h')
-rw-r--r-- | lib/Target/ARM/ARMConstantPoolValue.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/Target/ARM/ARMConstantPoolValue.h b/lib/Target/ARM/ARMConstantPoolValue.h index 6b69cb6caa..f1176f60fb 100644 --- a/lib/Target/ARM/ARMConstantPoolValue.h +++ b/lib/Target/ARM/ARMConstantPoolValue.h @@ -49,7 +49,6 @@ namespace ARMCP { /// represent PC-relative displacement between the address of the load /// instruction and the constant being loaded, i.e. (&GV-(LPIC+8)). class ARMConstantPoolValue : public MachineConstantPoolValue { - const MachineBasicBlock *MBB; // MachineBasicBlock being loaded. unsigned LabelId; // Label id of the load. ARMCP::ARMCPKind Kind; // Kind of constant. unsigned char PCAdjust; // Extra adjustment if constantpool is pc-relative. @@ -66,15 +65,8 @@ protected: unsigned char PCAdj, ARMCP::ARMCPModifier Modifier, bool AddCurrentAddress); public: - ARMConstantPoolValue(LLVMContext &C, const MachineBasicBlock *mbb,unsigned id, - ARMCP::ARMCPKind Kind = ARMCP::CPValue, - unsigned char PCAdj = 0, - ARMCP::ARMCPModifier Modifier = ARMCP::no_modifier, - bool AddCurrentAddress = false); virtual ~ARMConstantPoolValue(); - const MachineBasicBlock *getMBB() const; - ARMCP::ARMCPModifier getModifier() const { return Modifier; } const char *getModifierText() const; bool hasModifier() const { return Modifier != ARMCP::no_modifier; } @@ -200,14 +192,15 @@ public: /// ARMConstantPoolMBB - ARM-specific constantpool value of a machine basic /// block. class ARMConstantPoolMBB : public ARMConstantPoolValue { - MachineBasicBlock *MBB; // Machine basic block. + const MachineBasicBlock *MBB; // Machine basic block. - ARMConstantPoolMBB(LLVMContext &C, MachineBasicBlock *mbb, unsigned id, + ARMConstantPoolMBB(LLVMContext &C, const MachineBasicBlock *mbb, unsigned id, unsigned char PCAdj, ARMCP::ARMCPModifier Modifier, bool AddCurrentAddress); public: - static ARMConstantPoolMBB *Create(LLVMContext &C, MachineBasicBlock *mbb, + static ARMConstantPoolMBB *Create(LLVMContext &C, + const MachineBasicBlock *mbb, unsigned ID, unsigned char PCAdj); const MachineBasicBlock *getMBB() const { return MBB; } |