summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-29 00:19:33 +0000
committerEric Christopher <echristo@gmail.com>2015-01-29 00:19:33 +0000
commit1b21f0090488d6d55f8fc0f42f9f35adf3a47209 (patch)
tree6e8c54c3da509e828300738cbd7e90459abaf606 /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
parent6f508c578bcbb5f850d9ba6c013b11a1c54aa753 (diff)
downloadbcm5719-llvm-1b21f0090488d6d55f8fc0f42f9f35adf3a47209.tar.gz
bcm5719-llvm-1b21f0090488d6d55f8fc0f42f9f35adf3a47209.zip
Migrate ARM except for TTI, AsmPrinter, and frame lowering
away from getSubtargetImpl. llvm-svn: 227399
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMConstantIslandPass.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
index 40b4b7219cc..9966cd7b79d 100644
--- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -383,11 +383,9 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &mf) {
<< MCP->getConstants().size() << " CP entries, aligned to "
<< MCP->getConstantPoolAlignment() << " bytes *****\n");
- TII = (const ARMBaseInstrInfo *)MF->getTarget()
- .getSubtargetImpl()
- ->getInstrInfo();
+ STI = &static_cast<const ARMSubtarget &>(MF->getSubtarget());
+ TII = STI->getInstrInfo();
AFI = MF->getInfo<ARMFunctionInfo>();
- STI = &MF->getTarget().getSubtarget<ARMSubtarget>();
isThumb = AFI->isThumbFunction();
isThumb1 = AFI->isThumb1OnlyFunction();
OpenPOWER on IntegriCloud