mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
MC/ObjectWriter: Add a new IsSymbolRefDifferenceFullyResolved target format specific hook.
- Currently just has stub implementations for Mach-O, ELF, and COFF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -333,8 +333,17 @@ namespace {
|
||||
uint64_t Size, uint32_t Link, uint32_t Info,
|
||||
uint64_t Alignment, uint64_t EntrySize);
|
||||
|
||||
virtual void WriteRelocationsFragment(const MCAssembler &Asm, MCDataFragment *F,
|
||||
const MCSectionData *SD);
|
||||
virtual void WriteRelocationsFragment(const MCAssembler &Asm,
|
||||
MCDataFragment *F,
|
||||
const MCSectionData *SD);
|
||||
|
||||
virtual bool
|
||||
IsSymbolRefDifferenceFullyResolved(const MCAssembler &Asm,
|
||||
const MCSymbolRefExpr *A,
|
||||
const MCSymbolRefExpr *B) const {
|
||||
// FIXME: Implement this!
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool IsFixupFullyResolved(const MCAssembler &Asm,
|
||||
const MCValue Target,
|
||||
|
@@ -1123,6 +1123,12 @@ public:
|
||||
UndefinedSymbolData);
|
||||
}
|
||||
|
||||
bool IsSymbolRefDifferenceFullyResolved(const MCAssembler &Asm,
|
||||
const MCSymbolRefExpr *A,
|
||||
const MCSymbolRefExpr *B) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsFixupFullyResolved(const MCAssembler &Asm,
|
||||
const MCValue Target,
|
||||
bool IsPCRel,
|
||||
|
@@ -179,6 +179,14 @@ public:
|
||||
MCValue Target,
|
||||
uint64_t &FixedValue);
|
||||
|
||||
virtual bool
|
||||
IsSymbolRefDifferenceFullyResolved(const MCAssembler &Asm,
|
||||
const MCSymbolRefExpr *A,
|
||||
const MCSymbolRefExpr *B) const {
|
||||
// FIXME: Implement this!
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool IsFixupFullyResolved(const MCAssembler &Asm,
|
||||
const MCValue Target,
|
||||
bool IsPCRel,
|
||||
|
Reference in New Issue
Block a user