summaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-05 01:24:18 +0000
committerDan Gohman <gohman@apple.com>2010-01-05 01:24:18 +0000
commiteeb3a00b84b7767d236ec8cf0619b9217fc247b9 (patch)
tree6fa4e0deb80140890cb0084bcff5edb7bd4d31fe /lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
parent4c3235595fe7f43bb4e43eefdee308fb961b9300 (diff)
downloadexternal_llvm-eeb3a00b84b7767d236ec8cf0619b9217fc247b9.zip
external_llvm-eeb3a00b84b7767d236ec8cf0619b9217fc247b9.tar.gz
external_llvm-eeb3a00b84b7767d236ec8cf0619b9217fc247b9.tar.bz2
Change SelectCode's argument from SDValue to SDNode *, to make it more
clear what information these functions are actually using. This is also a micro-optimization, as passing a SDNode * around is simpler than passing a { SDNode *, int } by value or reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16ISelDAGToDAG.cpp')
-rw-r--r--lib/Target/PIC16/PIC16ISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp b/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
index e13e6cd..82197ae 100644
--- a/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
+++ b/lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
@@ -36,7 +36,7 @@ void PIC16DAGToDAGISel::InstructionSelect() {
/// Select - Select instructions not customized! Used for
/// expanded, promoted and normal instructions.
-SDNode* PIC16DAGToDAGISel::Select(SDValue N) {
+SDNode* PIC16DAGToDAGISel::Select(SDNode *N) {
// Select the default instruction.
SDNode *ResNode = SelectCode(N);
@@ -47,7 +47,7 @@ SDNode* PIC16DAGToDAGISel::Select(SDValue N) {
// SelectDirectAddr - Match a direct address for DAG.
// A direct address could be a globaladdress or externalsymbol.
-bool PIC16DAGToDAGISel::SelectDirectAddr(SDValue Op, SDValue N,
+bool PIC16DAGToDAGISel::SelectDirectAddr(SDNode *Op, SDValue N,
SDValue &Address) {
// Return true if TGA or ES.
if (N.getOpcode() == ISD::TargetGlobalAddress