From 8a272f00a0eb100a1d1527eb895ba6cf5074045a Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Sat, 29 Mar 2014 08:22:20 +0000 Subject: 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 --- lib/MC/MCValue.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/MC/MCValue.cpp') diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index 4393777211..68ecffbeab 100644 --- a/lib/MC/MCValue.cpp +++ b/lib/MC/MCValue.cpp @@ -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()) { -- cgit v1.2.3