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 | 4b5665a1f7e255f54a29f1255f19c805e3e23712 (patch) | |
| tree | b48ada6776150ea0875127df738a29eb0fd66e1a /llvm/include | |
| parent | 9e4b68992370b3546b21979fc25fe8c3ba366b1f (diff) | |
| download | bcm5719-llvm-4b5665a1f7e255f54a29f1255f19c805e3e23712.tar.gz bcm5719-llvm-4b5665a1f7e255f54a29f1255f19c805e3e23712.zip | |
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}.
llvm-svn: 132802
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCExpr.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCExpr.h b/llvm/include/llvm/MC/MCExpr.h index 521fde6982b..0f285999ad6 100644 --- a/llvm/include/llvm/MC/MCExpr.h +++ b/llvm/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: |

