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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h b/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
index a0805374a4..1b57687996 100644
--- a/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
+++ b/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h
@@ -27,9 +27,11 @@ public:
private:
const VariantKind Kind;
const MCExpr *Expr;
+ const int AssemblerDialect;
- explicit PPCMCExpr(VariantKind _Kind, const MCExpr *_Expr)
- : Kind(_Kind), Expr(_Expr) {}
+ explicit PPCMCExpr(VariantKind _Kind, const MCExpr *_Expr,
+ int _AssemblerDialect)
+ : Kind(_Kind), Expr(_Expr), AssemblerDialect(_AssemblerDialect) {}
public:
/// @name Construction
@@ -56,6 +58,10 @@ public:
/// getSubExpr - Get the child of this expression.
const MCExpr *getSubExpr() const { return Expr; }
+ /// isDarwinSyntax - True if expression is to be printed using Darwin syntax.
+ bool isDarwinSyntax() const { return AssemblerDialect == 1; }
+
+
/// @}
void PrintImpl(raw_ostream &OS) const;