mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Identical code for different branches (CID 1254883)
Reviewers: kledzik, rafael Reviewed By: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6303 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2cdfb4b5da
commit
b859adadae
@ -1519,34 +1519,18 @@ int SymbolizerGetOpInfo(void *DisInfo, uint64_t Pc, uint64_t Offset,
|
||||
const char *name = SymName.data();
|
||||
op_info->AddSymbol.Present = 1;
|
||||
op_info->AddSymbol.Name = name;
|
||||
if (value != 0) {
|
||||
switch (r_type) {
|
||||
case MachO::ARM_RELOC_HALF:
|
||||
if ((r_length & 0x1) == 1) {
|
||||
op_info->Value = value << 16 | other_half;
|
||||
op_info->VariantKind = LLVMDisassembler_VariantKind_ARM_HI16;
|
||||
} else {
|
||||
op_info->Value = other_half << 16 | value;
|
||||
op_info->VariantKind = LLVMDisassembler_VariantKind_ARM_LO16;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (r_type) {
|
||||
case MachO::ARM_RELOC_HALF:
|
||||
if ((r_length & 0x1) == 1) {
|
||||
op_info->Value = value << 16 | other_half;
|
||||
op_info->VariantKind = LLVMDisassembler_VariantKind_ARM_HI16;
|
||||
} else {
|
||||
op_info->Value = other_half << 16 | value;
|
||||
op_info->VariantKind = LLVMDisassembler_VariantKind_ARM_LO16;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
switch (r_type) {
|
||||
case MachO::ARM_RELOC_HALF:
|
||||
if ((r_length & 0x1) == 1) {
|
||||
op_info->Value = value << 16 | other_half;
|
||||
op_info->VariantKind = LLVMDisassembler_VariantKind_ARM_HI16;
|
||||
} else {
|
||||
op_info->Value = other_half << 16 | value;
|
||||
op_info->VariantKind = LLVMDisassembler_VariantKind_ARM_LO16;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user