aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2013-05-08 17:51:39 +0000
committerRoman Divacky <rdivacky@freebsd.org>2013-05-08 17:51:39 +0000
commitfd94f0ab358ea12cf2b17c9628207b3fd11d40b4 (patch)
treeb3622088cfcc1840c25502f2cb9ab92e07d75b47 /lib/Target/PowerPC/PPCISelLowering.cpp
parentc37077af7bfdc22da2d267eee7905927dd5fdd17 (diff)
downloadexternal_llvm-fd94f0ab358ea12cf2b17c9628207b3fd11d40b4.zip
external_llvm-fd94f0ab358ea12cf2b17c9628207b3fd11d40b4.tar.gz
external_llvm-fd94f0ab358ea12cf2b17c9628207b3fd11d40b4.tar.bz2
Remove unused isLegalAddressImmediate() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index 3764b7f..3819bc8 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -7406,18 +7406,6 @@ bool PPCTargetLowering::isLegalAddressingMode(const AddrMode &AM,
return true;
}
-/// isLegalAddressImmediate - Return true if the integer value can be used
-/// as the offset of the target addressing mode for load / store of the
-/// given type.
-bool PPCTargetLowering::isLegalAddressImmediate(int64_t V,Type *Ty) const{
- // PPC allows a sign-extended 16-bit immediate field.
- return (V > -(1 << 16) && V < (1 << 16)-1);
-}
-
-bool PPCTargetLowering::isLegalAddressImmediate(GlobalValue* GV) const {
- return false;
-}
-
SDValue PPCTargetLowering::LowerRETURNADDR(SDValue Op,
SelectionDAG &DAG) const {
MachineFunction &MF = DAG.getMachineFunction();