From beeb93e6ba48af2661eabc4872d8b159fb43e5db Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 26 Jan 2010 05:58:28 +0000 Subject: 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 --- include/llvm/CodeGen/MachineJumpTableInfo.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm/CodeGen/MachineJumpTableInfo.h') 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 &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. -- cgit v1.2.3-18-g5258