diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-06-09 20:25:38 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-06-09 20:25:38 +0000 |
commit | a1000742d28f33dd8dd9858e64282e7749c0bd64 (patch) | |
tree | 733f01429f46d1d69a5a4c0863955f56eb64896c /include/llvm/MC/MCExpr.h | |
parent | e5dfa8f697d3c48361d507491d0cff35607ed419 (diff) | |
download | llvm-a1000742d28f33dd8dd9858e64282e7749c0bd64.tar.gz llvm-a1000742d28f33dd8dd9858e64282e7749c0bd64.tar.bz2 llvm-a1000742d28f33dd8dd9858e64282e7749c0bd64.tar.xz |
Fix emission of PPC64 assembler on non-darwin platforms by splitting
VK_PPC_{HA,LO}16 into darwin and gas variants.
Darwin wants {ha,lo}16(symbol) while gnu as wants symbol@{ha,l}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCExpr.h')
-rw-r--r-- | include/llvm/MC/MCExpr.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h index 521fde6982..0f285999ad 100644 --- a/include/llvm/MC/MCExpr.h +++ b/include/llvm/MC/MCExpr.h @@ -171,8 +171,10 @@ public: VK_ARM_GOTTPOFF, VK_PPC_TOC, - VK_PPC_HA16, // ha16(symbol) - VK_PPC_LO16 // lo16(symbol) + VK_PPC_DARWIN_HA16, // ha16(symbol) + VK_PPC_DARWIN_LO16, // lo16(symbol) + VK_PPC_GAS_HA16, // symbol@ha + VK_PPC_GAS_LO16 // symbol@l }; private: |