diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-26 05:58:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-26 05:58:28 +0000 |
commit | beeb93e6ba48af2661eabc4872d8b159fb43e5db (patch) | |
tree | e63ff6ede38987fd5319fe7214f6d9fee5c9eefd /include/llvm/CodeGen/MachineJumpTableInfo.h | |
parent | 13e97a29d9dfa5602f93a8c546f112c5d029e8f7 (diff) |
add a new MachineJumpTableInfo::getJTISymbol method,
use it to implement the default TargetLowering::getPICJumpTableRelocBaseExpr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineJumpTableInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineJumpTableInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h index 7d47714fd2..87c2b0bf58 100644 --- a/include/llvm/CodeGen/MachineJumpTableInfo.h +++ b/include/llvm/CodeGen/MachineJumpTableInfo.h @@ -90,6 +90,12 @@ public: const std::vector<MachineJumpTableEntry> &getJumpTables() const { return JumpTables; } + + /// getJTISymbol - Return the MCSymbol for the specified non-empty jump table. + /// If isLinkerPrivate is specified, an 'l' label is returned, otherwise a + /// normal 'L' label is returned. + MCSymbol *getJTISymbol(unsigned JTI, MCContext &Ctx, + bool isLinkerPrivate = false) const; /// RemoveJumpTable - Mark the specific index as being dead. This will /// prevent it from being emitted. |