aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-01 06:48:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-01 06:48:00 +0000
commita4d1d2f6e8c02a5e6db88bbd6e6064273758b25c (patch)
treeddaba4f81efe1fab1c280cb8421a67eab4a900ca /tools
parent307cd8fbb329ae1d69b067a04cead73c1cb9c30a (diff)
downloadexternal_llvm-a4d1d2f6e8c02a5e6db88bbd6e6064273758b25c.zip
external_llvm-a4d1d2f6e8c02a5e6db88bbd6e6064273758b25c.tar.gz
external_llvm-a4d1d2f6e8c02a5e6db88bbd6e6064273758b25c.tar.bz2
Rename MCValue::isConstant to isAbsolute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-mc/AsmExpr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-mc/AsmExpr.cpp b/tools/llvm-mc/AsmExpr.cpp
index 4b32b92..c3362e4 100644
--- a/tools/llvm-mc/AsmExpr.cpp
+++ b/tools/llvm-mc/AsmExpr.cpp
@@ -19,7 +19,7 @@ AsmExpr::~AsmExpr() {
bool AsmExpr::EvaluateAsAbsolute(MCContext &Ctx, int64_t &Res) const {
MCValue Value;
- if (!EvaluateAsRelocatable(Ctx, Value) || !Value.isConstant())
+ if (!EvaluateAsRelocatable(Ctx, Value) || !Value.isAbsolute())
return false;
Res = Value.getConstant();
@@ -75,7 +75,7 @@ bool AsmExpr::EvaluateAsRelocatable(MCContext &Ctx, MCValue &Res) const {
switch (AUE->getOpcode()) {
case AsmUnaryExpr::LNot:
- if (!Value.isConstant())
+ if (!Value.isAbsolute())
return false;
Res = MCValue::get(!Value.getConstant());
break;
@@ -87,7 +87,7 @@ bool AsmExpr::EvaluateAsRelocatable(MCContext &Ctx, MCValue &Res) const {
-Value.getConstant());
break;
case AsmUnaryExpr::Not:
- if (!Value.isConstant())
+ if (!Value.isAbsolute())
return false;
Res = MCValue::get(~Value.getConstant());
break;
@@ -109,7 +109,7 @@ bool AsmExpr::EvaluateAsRelocatable(MCContext &Ctx, MCValue &Res) const {
// We only support a few operations on non-constant expressions, handle
// those first.
- if (!LHSValue.isConstant() || !RHSValue.isConstant()) {
+ if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) {
switch (ABE->getOpcode()) {
default:
return false;