diff options
author | Reed Kotler <rkotler@mips.com> | 2013-11-13 04:37:52 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-11-13 04:37:52 +0000 |
commit | 4df21b14675954ba951ad118d1dc4a4021650078 (patch) | |
tree | 61dba36d68b8fee669750a04594a648ffd89917b /lib/Target/Mips/MipsConstantIslandPass.cpp | |
parent | 950abf3933eae3a7ddeeb88916b35ca5265e7cb2 (diff) | |
download | llvm-4df21b14675954ba951ad118d1dc4a4021650078.tar.gz llvm-4df21b14675954ba951ad118d1dc4a4021650078.tar.bz2 llvm-4df21b14675954ba951ad118d1dc4a4021650078.tar.xz |
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
Diffstat (limited to 'lib/Target/Mips/MipsConstantIslandPass.cpp')
-rw-r--r-- | lib/Target/Mips/MipsConstantIslandPass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<MipsFunctionInfo>(); DEBUG(dbgs() << "constant island processing " << "\n"); // |