summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-20 18:37:40 +0000
committerEric Christopher <echristo@gmail.com>2012-11-20 18:37:40 +0000
commitecf7e97cded4c3c1cef5fd5596ab6794243a8724 (patch)
tree0e01fc0eb630100e85dc628265ab37bf20127f22 /include
parent2db2749c67eed0b960af655ce9910c0cd0e5daed (diff)
downloadllvm-ecf7e97cded4c3c1cef5fd5596ab6794243a8724.tar.gz
llvm-ecf7e97cded4c3c1cef5fd5596ab6794243a8724.tar.bz2
llvm-ecf7e97cded4c3c1cef5fd5596ab6794243a8724.tar.xz
Remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/RelocVisitor.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/Object/RelocVisitor.h b/include/llvm/Object/RelocVisitor.h
index 17e52edd5d..1370c71a7d 100644
--- a/include/llvm/Object/RelocVisitor.h
+++ b/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);