diff options
| author | Eric Christopher <echristo@gmail.com> | 2012-11-20 18:37:40 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2012-11-20 18:37:40 +0000 |
| commit | 3ab352292ccd2ddd376ec8c4f008f54e161b8b36 (patch) | |
| tree | 8991d5f4d7277c5daeef0cbe710fcb03bb7620b0 | |
| parent | 159fac49709c89ea1f8d4c132fded538fbf90fe8 (diff) | |
| download | bcm5719-llvm-3ab352292ccd2ddd376ec8c4f008f54e161b8b36.tar.gz bcm5719-llvm-3ab352292ccd2ddd376ec8c4f008f54e161b8b36.zip | |
Remove some dead code.
llvm-svn: 168374
| -rw-r--r-- | llvm/include/llvm/Object/RelocVisitor.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/include/llvm/Object/RelocVisitor.h b/llvm/include/llvm/Object/RelocVisitor.h index 17e52edd5dc..1370c71a7d5 100644 --- a/llvm/include/llvm/Object/RelocVisitor.h +++ b/llvm/include/llvm/Object/RelocVisitor.h @@ -76,25 +76,6 @@ private: /// Operations - // Width is the width in bytes of the extend. - RelocToApply zeroExtend(RelocToApply r, char Width) { - if (Width == r.Width) - return r; - r.Value &= (1LL << ((Width * 8))) - 1; - return r; - } - RelocToApply signExtend(RelocToApply r, char Width) { - if (Width == r.Width) - return r; - bool SignBit = r.Value & (1LL << ((Width * 8) - 1)); - if (SignBit) { - r.Value |= ~((1LL << (Width * 8)) - 1); - } else { - r.Value &= (1LL << (Width * 8)) - 1; - } - return r; - } - /// X86-64 ELF RelocToApply visitELF_X86_64_NONE(RelocationRef R) { return RelocToApply(0, 0); |

