summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCExpr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-15 02:46:57 +0000
committerChris Lattner <sabre@nondot.org>2010-11-15 02:46:57 +0000
commit1e61e69d401045c54b15815f15a0fdb3ca56a9b5 (patch)
treeece661c4c7b88ccde11f44e0ef5de5c1b1bdd82d /include/llvm/MC/MCExpr.h
parentdd57417c08d3fbb52935b70cf14edef34535d045 (diff)
downloadllvm-1e61e69d401045c54b15815f15a0fdb3ca56a9b5.tar.gz
llvm-1e61e69d401045c54b15815f15a0fdb3ca56a9b5.tar.bz2
llvm-1e61e69d401045c54b15815f15a0fdb3ca56a9b5.tar.xz
add targetoperand flags for jump tables, constant pool and block address
nodes to indicate when ha16/lo16 modifiers should be used. This lets us pass PowerPC/indirectbr.ll. The one annoying thing about this patch is that the MCSymbolExpr isn't expressive enough to represent ha16(label1-label2) which we need on PowerPC. I have a terrible hack in the meantime, but this will have to be revisited at some point. Last major conversion item left is global variable references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCExpr.h')
-rw-r--r--include/llvm/MC/MCExpr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index 22b1447b95..e8b15284f2 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -152,7 +152,9 @@ public:
VK_ARM_TPOFF,
VK_ARM_GOTTPOFF,
- VK_PPC_TOC
+ VK_PPC_TOC,
+ VK_PPC_HA16, // ha16(symbol)
+ VK_PPC_LO16 // lo16(symbol)
};
private: