summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h')
-rw-r--r--lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h b/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
index 8a7b78da9a..150acf6052 100644
--- a/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
+++ b/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
@@ -21,6 +21,7 @@ public:
enum VariantKind {
VK_PPC_None,
VK_PPC_LO,
+ VK_PPC_HI,
VK_PPC_HA
};
@@ -44,6 +45,10 @@ public:
return Create(VK_PPC_LO, Expr, Ctx);
}
+ static const PPCMCExpr *CreateHi(const MCExpr *Expr, MCContext &Ctx) {
+ return Create(VK_PPC_HI, Expr, Ctx);
+ }
+
static const PPCMCExpr *CreateHa(const MCExpr *Expr, MCContext &Ctx) {
return Create(VK_PPC_HA, Expr, Ctx);
}