summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsISelLowering.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-09-25 00:30:25 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-09-25 00:30:25 +0000
commit793803449870a661c1a09e400df9b04492772196 (patch)
tree11982c7fefe5508b815ae27933da2762bb5f1c48 /lib/Target/Mips/MipsISelLowering.h
parentce734f1f43b3c5f614b95b53e3ed86f65daca8dd (diff)
downloadllvm-793803449870a661c1a09e400df9b04492772196.tar.gz
llvm-793803449870a661c1a09e400df9b04492772196.tar.bz2
llvm-793803449870a661c1a09e400df9b04492772196.tar.xz
[mips] Define getTargetNode as a template function.
No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.h')
-rw-r--r--lib/Target/Mips/MipsISelLowering.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h
index 20211146e2..f778d36808 100644
--- a/lib/Target/Mips/MipsISelLowering.h
+++ b/lib/Target/Mips/MipsISelLowering.h
@@ -248,11 +248,16 @@ namespace llvm {
protected:
SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const;
- SDValue getAddrLocal(SDValue Op, SelectionDAG &DAG, bool HasMips64) const;
+ template<class NodeTy>
+ SDValue getAddrLocal(NodeTy *N, EVT Ty, SelectionDAG &DAG,
+ bool HasMips64) const;
- SDValue getAddrGlobal(SDValue Op, SelectionDAG &DAG, unsigned Flag) const;
+ template<class NodeTy>
+ SDValue getAddrGlobal(NodeTy *N, EVT Ty, SelectionDAG &DAG,
+ unsigned Flag) const;
- SDValue getAddrGlobalLargeGOT(SDValue Op, SelectionDAG &DAG,
+ template<class NodeTy>
+ SDValue getAddrGlobalLargeGOT(NodeTy *N, EVT Ty, SelectionDAG &DAG,
unsigned HiFlag, unsigned LoFlag) const;
/// This function fills Ops, which is the list of operands that will later