[llvm-commits] [llvm] r168374 - /llvm/trunk/include/llvm/Object/RelocVisitor.h
Eric Christopher
echristo at gmail.com
Tue Nov 20 10:37:40 PST 2012
Author: echristo
Date: Tue Nov 20 12:37:40 2012
New Revision: 168374
URL: http://llvm.org/viewvc/llvm-project?rev=168374&view=rev
Log:
Remove some dead code.
Modified:
llvm/trunk/include/llvm/Object/RelocVisitor.h
Modified: llvm/trunk/include/llvm/Object/RelocVisitor.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/RelocVisitor.h?rev=168374&r1=168373&r2=168374&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/RelocVisitor.h (original)
+++ llvm/trunk/include/llvm/Object/RelocVisitor.h Tue Nov 20 12:37:40 2012
@@ -76,25 +76,6 @@
/// 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);
More information about the llvm-commits
mailing list