mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
MC: add a RefKind field to MCValue
This is principally to allow neater mapping of fixups to relocations in ARM64 ELF. Without this, there isn't enough information available to GetRelocType, leading to many more fixup_arm64_... enumerators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,11 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
|
||||
return;
|
||||
}
|
||||
|
||||
// FIXME: prints as a number, which isn't ideal. But the meaning will be
|
||||
// target-specific anyway.
|
||||
if (getRefKind())
|
||||
OS << ':' << getRefKind() << ':';
|
||||
|
||||
getSymA()->print(OS);
|
||||
|
||||
if (getSymB()) {
|
||||
|
||||
Reference in New Issue
Block a user