Move getJTISymbol from MachineJumpTableInfo to MachineFunction,
authorChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 06:28:43 +0000 (06:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 06:28:43 +0000 (06:28 +0000)
commit589c6f620e8dcf3d59af1ae0e15372c934647c82
tree416f671c04eaddff62cc5fa28c6842862157b44c
parentbeeb93e6ba48af2661eabc4872d8b159fb43e5db
Move getJTISymbol from MachineJumpTableInfo to MachineFunction,
which is more convenient, and change getPICJumpTableRelocBaseExpr
to take a MachineFunction to match.

Next, move the X86 code that create a PICBase symbol to
X86TargetLowering::getPICBaseSymbol from
X86MCInstLower::GetPICBaseSymbol, which was an asmprinter specific
library.  This eliminates a 'gross hack', and allows us to
implement X86ISelLowering::getPICJumpTableRelocBaseExpr which now
calls it.

This in turn allows us to eliminate the
X86AsmPrinter::printPICJumpTableSetLabel method, which was the
only overload of printPICJumpTableSetLabel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94526 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineFunction.h
include/llvm/CodeGen/MachineJumpTableInfo.h
include/llvm/Target/TargetLowering.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.h
lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h