[llvm] r227831 - Use the function template getSubtarget to remove an explicit cast.
Eric Christopher
echristo at gmail.com
Mon Feb 2 10:46:29 PST 2015
Author: echristo
Date: Mon Feb 2 12:46:29 2015
New Revision: 227831
URL: http://llvm.org/viewvc/llvm-project?rev=227831&view=rev
Log:
Use the function template getSubtarget to remove an explicit cast.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp?rev=227831&r1=227830&r2=227831&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp Mon Feb 2 12:46:29 2015
@@ -418,7 +418,7 @@ bool HexagonCopyToCombine::runOnMachineF
// Get target info.
TRI = MF.getSubtarget().getRegisterInfo();
- TII = static_cast<const HexagonInstrInfo *>(MF.getSubtarget().getInstrInfo());
+ TII = MF.getSubtarget<HexagonSubtarget>().getInstrInfo();
// Combine aggressively (for code size)
ShouldCombineAggressively =
More information about the llvm-commits
mailing list