From 4df21b14675954ba951ad118d1dc4a4021650078 Mon Sep 17 00:00:00 2001 From: Reed Kotler Date: Wed, 13 Nov 2013 04:37:52 +0000 Subject: Allow the code which returns the length for inline assembler to know specifically about the .space directive. This allows us to force large blocks of code to appear in test cases for things like constant islands without having to make giant test cases to force things like long branches to take effect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194555 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsConstantIslandPass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Target/Mips/MipsConstantIslandPass.cpp') diff --git a/lib/Target/Mips/MipsConstantIslandPass.cpp b/lib/Target/Mips/MipsConstantIslandPass.cpp index 16573644b9..c40b7fe39b 100644 --- a/lib/Target/Mips/MipsConstantIslandPass.cpp +++ b/lib/Target/Mips/MipsConstantIslandPass.cpp @@ -25,6 +25,7 @@ #include "Mips.h" #include "MCTargetDesc/MipsBaseInfo.h" +#include "Mips16InstrInfo.h" #include "MipsMachineFunction.h" #include "MipsTargetMachine.h" #include "llvm/ADT/Statistic.h" @@ -237,7 +238,7 @@ namespace { bool IsPIC; unsigned ABI; const MipsSubtarget *STI; - const MipsInstrInfo *TII; + const Mips16InstrInfo *TII; MipsFunctionInfo *MFI; MachineFunction *MF; MachineConstantPool *MCP; @@ -359,7 +360,7 @@ bool MipsConstantIslands::runOnMachineFunction(MachineFunction &mf) { !MipsSubtarget::useConstantIslands()) { return false; } - TII = (const MipsInstrInfo*)MF->getTarget().getInstrInfo(); + TII = (const Mips16InstrInfo*)MF->getTarget().getInstrInfo(); MFI = MF->getInfo(); DEBUG(dbgs() << "constant island processing " << "\n"); // -- cgit v1.2.3