diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-28 01:02:49 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-28 01:02:49 +0000 |
| commit | 3a9ec2463ddeba0820f284e2952bd6919cd5e080 (patch) | |
| tree | cf7c5fe955cfaf5d8f363b9d96323bfc3766cbcf /lib/Target | |
| parent | dc87725902736ee4a843ee70a46627ea4abcc235 (diff) | |
For PR387:
Close out this long standing bug by removing the remaining overloaded
virtual functions in LLVM. The -Woverloaded-virtual option is now turned on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 4 | ||||
| -rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 067063df25..31e209adf4 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -2691,3 +2691,7 @@ bool PPCTargetLowering::isLegalAddressImmediate(int64_t V) const { // PPC allows a sign-extended 16-bit immediate field. return (V > -(1 << 16) && V < (1 << 16)-1); } + +bool PPCTargetLowering::isLegalAddressImmediate(llvm::GlobalValue* GV) const { + return TargetLowering::isLegalAddressImmediate(GV); +} diff --git a/lib/Target/PowerPC/PPCISelLowering.h b/lib/Target/PowerPC/PPCISelLowering.h index d9defe2324..467b3f0955 100644 --- a/lib/Target/PowerPC/PPCISelLowering.h +++ b/lib/Target/PowerPC/PPCISelLowering.h @@ -199,6 +199,7 @@ namespace llvm { /// isLegalAddressImmediate - Return true if the integer value can be used /// as the offset of the target addressing mode. virtual bool isLegalAddressImmediate(int64_t V) const; + virtual bool isLegalAddressImmediate(llvm::GlobalValue*) const; }; } |
