diff options
| author | Eli Bendersky <eliben@google.com> | 2012-12-18 18:21:29 +0000 |
|---|---|---|
| committer | Eli Bendersky <eliben@google.com> | 2012-12-18 18:21:29 +0000 |
| commit | 39e7c6e370ffaf941503cd8b3f54767e4e7fa886 (patch) | |
| tree | f384e948641b71580bdf97cc5c98a66caf8a254b /llvm/lib/Target/MSP430 | |
| parent | 422e07b091950e0834c9a50ea124932440106349 (diff) | |
| download | bcm5719-llvm-39e7c6e370ffaf941503cd8b3f54767e4e7fa886.tar.gz bcm5719-llvm-39e7c6e370ffaf941503cd8b3f54767e4e7fa886.zip | |
Get rid of the pesky -Woverloaded-virtual warning. No change in functionality.
llvm-svn: 170438
Diffstat (limited to 'llvm/lib/Target/MSP430')
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelLowering.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp index 8a1bd0958b5..1808dcfd5d6 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp +++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp @@ -1063,6 +1063,10 @@ bool MSP430TargetLowering::isZExtFree(EVT VT1, EVT VT2) const { return 0 && VT1 == MVT::i8 && VT2 == MVT::i16; } +bool MSP430TargetLowering::isZExtFree(SDValue Val, EVT VT2) const { + return isZExtFree(Val.getValueType(), VT2); +} + //===----------------------------------------------------------------------===// // Other Lowering Code //===----------------------------------------------------------------------===// diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.h b/llvm/lib/Target/MSP430/MSP430ISelLowering.h index bf021eaac5f..ab4e64e921f 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelLowering.h +++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.h @@ -116,6 +116,7 @@ namespace llvm { /// out to 16 bits. virtual bool isZExtFree(Type *Ty1, Type *Ty2) const; virtual bool isZExtFree(EVT VT1, EVT VT2) const; + virtual bool isZExtFree(SDValue Val, EVT VT2) const; MachineBasicBlock* EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *BB) const; |

