aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-06 22:30:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-06 22:30:54 +0000
commit22373b230a053a154f6c7792c6a33d4f78f5479d (patch)
tree36e6e4f8732e2819c7e215b5776d7efcbb565ce2 /include
parenta3b22004725a8510f29bc31604f62e1d3f3c95d2 (diff)
downloadexternal_llvm-22373b230a053a154f6c7792c6a33d4f78f5479d.zip
external_llvm-22373b230a053a154f6c7792c6a33d4f78f5479d.tar.gz
external_llvm-22373b230a053a154f6c7792c6a33d4f78f5479d.tar.bz2
Use references to simplify the code a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCExpr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index e953a11..888934e 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -41,6 +41,8 @@ private:
MCExpr(const MCExpr&); // DO NOT IMPLEMENT
void operator=(const MCExpr&); // DO NOT IMPLEMENT
+ bool EvaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm,
+ const MCAsmLayout *Layout) const;
protected:
explicit MCExpr(ExprKind _Kind) : Kind(_Kind) {}
@@ -72,10 +74,8 @@ public:
/// evaluated.
/// @result - True on success.
bool EvaluateAsAbsolute(int64_t &Res) const;
- bool EvaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm) const;
- bool EvaluateAsAbsolute(int64_t &Res, const MCAsmLayout *Layout) const;
- bool EvaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm,
- const MCAsmLayout *Layout) const;
+ bool EvaluateAsAbsolute(int64_t &Res, const MCAssembler &Asm) const;
+ bool EvaluateAsAbsolute(int64_t &Res, const MCAsmLayout &Layout) const;
/// EvaluateAsRelocatable - Try to evaluate the expression to a relocatable
/// value, i.e. an expression of the fixed form (a - b + constant).