Remove some dead code.
authorEric Christopher <echristo@gmail.com>
Tue, 20 Nov 2012 18:37:40 +0000 (18:37 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 20 Nov 2012 18:37:40 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168374 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/RelocVisitor.h

index 17e52edd5dc8bed87de9ec28e443c501303d5980..1370c71a7d546055a1f2d5dfa64e21ecfef1a18f 100644 (file)
@@ -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);