diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-09-25 02:09:18 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-09-25 02:09:18 +0000 |
| commit | 81782f0cb8840c17e9715b3f8ad0117559a9403d (patch) | |
| tree | 502a0af662df85330ec9b1ab2a97aec03febcf0d /llvm/lib/MC | |
| parent | d355369dbbb8c2d3a56779492658f3b20af6d692 (diff) | |
| download | bcm5719-llvm-81782f0cb8840c17e9715b3f8ad0117559a9403d.tar.gz bcm5719-llvm-81782f0cb8840c17e9715b3f8ad0117559a9403d.zip | |
MC: Use @IMGREL instead of @IMGREL32, which we can't parse
Nico Rieck added support for this 32-bit COFF relocation some time ago
for Win64 stuff. It appears that as an oversight, the assembly output
used "foo"@IMGREL32 instead of "foo"@IMGREL, which is what we can parse.
Sadly, there were actually tests that took in IMGREL and put out
IMGREL32, and we didn't notice the inconsistency. Oh well. Now LLVM can
assemble it's own output with slightly more fidelity.
llvm-svn: 218437
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index 992f0a756ca..c0396233c27 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/lib/MC/MCExpr.cpp @@ -273,7 +273,7 @@ StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) { case VK_Mips_CALL_LO16: return "CALL_LO16"; case VK_Mips_PCREL_HI16: return "PCREL_HI16"; case VK_Mips_PCREL_LO16: return "PCREL_LO16"; - case VK_COFF_IMGREL32: return "IMGREL32"; + case VK_COFF_IMGREL32: return "IMGREL"; } llvm_unreachable("Invalid variant kind"); } |

