projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d777c2c
)
Use the template method to grab the target specific subtarget.
author
Eric Christopher
<echristo@gmail.com>
Sat, 14 Feb 2015 00:09:46 +0000
(
00:09
+0000)
committer
Eric Christopher
<echristo@gmail.com>
Sat, 14 Feb 2015 00:09:46 +0000
(
00:09
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229191
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Mips/MipsFastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Mips/MipsFastISel.cpp
b/lib/Target/Mips/MipsFastISel.cpp
index 112e5663e759c5d19b53c26e2abfc3ce54499cc8..34d46f9b0edb9c3ccf99aa23ede4d629c88479bd 100644
(file)
--- a/
lib/Target/Mips/MipsFastISel.cpp
+++ b/
lib/Target/Mips/MipsFastISel.cpp
@@
-158,8
+158,7
@@
public:
explicit MipsFastISel(FunctionLoweringInfo &funcInfo,
const TargetLibraryInfo *libInfo)
: FastISel(funcInfo, libInfo), TM(funcInfo.MF->getTarget()),
- Subtarget(
- &static_cast<const MipsSubtarget &>(funcInfo.MF->getSubtarget())),
+ Subtarget(&funcInfo.MF->getSubtarget<MipsSubtarget>()),
TII(*Subtarget->getInstrInfo()), TLI(*Subtarget->getTargetLowering()) {
MFI = funcInfo.MF->getInfo<MipsFunctionInfo>();
Context = &funcInfo.Fn->getContext();