mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-14 17:57:43 +00:00
Remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2db2749c67
commit
ecf7e97cde
@ -76,25 +76,6 @@ private:
|
|||||||
|
|
||||||
/// Operations
|
/// 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
|
/// X86-64 ELF
|
||||||
RelocToApply visitELF_X86_64_NONE(RelocationRef R) {
|
RelocToApply visitELF_X86_64_NONE(RelocationRef R) {
|
||||||
return RelocToApply(0, 0);
|
return RelocToApply(0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user