mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Fixed some style issues (no _, no spc after !)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d80f8d08ce
commit
1090742689
@ -129,11 +129,11 @@ namespace {
|
|||||||
ELFRelocationEntry()
|
ELFRelocationEntry()
|
||||||
: r_offset(0), Index(0), Type(0), Symbol(0), r_addend(0) {}
|
: r_offset(0), Index(0), Type(0), Symbol(0), r_addend(0) {}
|
||||||
|
|
||||||
ELFRelocationEntry(uint64_t RelocOffset, int _Index,
|
ELFRelocationEntry(uint64_t RelocOffset, int Idx,
|
||||||
unsigned _Type, const MCSymbol *_Symbol,
|
unsigned RelType, const MCSymbol *Sym,
|
||||||
uint64_t Addend)
|
uint64_t Addend)
|
||||||
: r_offset(RelocOffset), Index(_Index), Type(_Type),
|
: r_offset(RelocOffset), Index(Idx), Type(RelType),
|
||||||
Symbol(_Symbol), r_addend(Addend) {}
|
Symbol(Sym), r_addend(Addend) {}
|
||||||
|
|
||||||
// Support lexicographic sorting.
|
// Support lexicographic sorting.
|
||||||
bool operator<(const ELFRelocationEntry &RE) const {
|
bool operator<(const ELFRelocationEntry &RE) const {
|
||||||
@ -1529,7 +1529,7 @@ void MBlazeELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||||||
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
||||||
Fixup.getOffset();
|
Fixup.getOffset();
|
||||||
|
|
||||||
if (! HasRelocationAddend) Addend = 0;
|
if (!HasRelocationAddend) Addend = 0;
|
||||||
ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);
|
ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);
|
||||||
Relocations[Fragment->getParent()].push_back(ERE);
|
Relocations[Fragment->getParent()].push_back(ERE);
|
||||||
}
|
}
|
||||||
@ -1741,7 +1741,7 @@ void X86ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
|
|||||||
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
|
||||||
Fixup.getOffset();
|
Fixup.getOffset();
|
||||||
|
|
||||||
if (! HasRelocationAddend) Addend = 0;
|
if (!HasRelocationAddend) Addend = 0;
|
||||||
ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);
|
ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);
|
||||||
Relocations[Fragment->getParent()].push_back(ERE);
|
Relocations[Fragment->getParent()].push_back(ERE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user