mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Have MachineFunction cache a pointer to the subtarget to make lookups
shorter/easier and have the DAG use that to do the same lookup. This can be used in the future for TargetMachine based caching lookups from the MachineFunction easily. Update the MIPS subtarget switching machinery to update this pointer at the same time it runs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1121,7 +1121,7 @@ void AsmPrinter::EmitConstantPool() {
|
||||
/// by the current function to the current output stream.
|
||||
///
|
||||
void AsmPrinter::EmitJumpTableInfo() {
|
||||
const DataLayout *DL = MF->getTarget().getSubtargetImpl()->getDataLayout();
|
||||
const DataLayout *DL = MF->getSubtarget().getDataLayout();
|
||||
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
||||
if (!MJTI) return;
|
||||
if (MJTI->getEntryKind() == MachineJumpTableInfo::EK_Inline) return;
|
||||
|
||||
Reference in New Issue
Block a user