diff options
author | Tim Northover <tnorthover@apple.com> | 2014-03-29 08:22:20 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-03-29 08:22:20 +0000 |
commit | 8a272f00a0eb100a1d1527eb895ba6cf5074045a (patch) | |
tree | 728ec594b8ed93a845cde5a7fdbe6d7024a5e10a /lib | |
parent | 1330ee3189a3a29ce89fc2648e6a0d98ba36f0d4 (diff) | |
download | llvm-8a272f00a0eb100a1d1527eb895ba6cf5074045a.tar.gz llvm-8a272f00a0eb100a1d1527eb895ba6cf5074045a.tar.bz2 llvm-8a272f00a0eb100a1d1527eb895ba6cf5074045a.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCValue.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()) { |