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 | e7141c8be6a9a52ea6ea2922a7c74f928c14c745 (patch) | |
| tree | b057706a7160b4ea901e64cf129e9d0e7c0f75d0 /llvm/lib/Target/PowerPC | |
| parent | ea3c2b29e506adcd7cac77bfafcff8d1571958bb (diff) | |
| download | bcm5719-llvm-e7141c8be6a9a52ea6ea2922a7c74f928c14c745.tar.gz bcm5719-llvm-e7141c8be6a9a52ea6ea2922a7c74f928c14c745.zip | |
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.
llvm-svn: 29934
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 067063df259..31e209adf41 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/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/llvm/lib/Target/PowerPC/PPCISelLowering.h b/llvm/lib/Target/PowerPC/PPCISelLowering.h index d9defe23241..467b3f0955d 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.h +++ b/llvm/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; }; } |

