aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCValue.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-29 19:51:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-29 19:51:00 +0000
commit7908a6a189d12c38269df2891a24382525d00591 (patch)
tree5fa4944df0ac3cb78866761e53843dcca976e9d6 /include/llvm/MC/MCValue.h
parent2fbb770d4078199326cd30b3201a67c6b99fb083 (diff)
downloadexternal_llvm-7908a6a189d12c38269df2891a24382525d00591.tar.gz
external_llvm-7908a6a189d12c38269df2891a24382525d00591.tar.bz2
external_llvm-7908a6a189d12c38269df2891a24382525d00591.zip
Rename MCValue::getCst to getConstant and add MCValue::isConstant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCValue.h')
-rw-r--r--include/llvm/MC/MCValue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/MC/MCValue.h b/include/llvm/MC/MCValue.h
index 7df12dadd0..811d331edd 100644
--- a/include/llvm/MC/MCValue.h
+++ b/include/llvm/MC/MCValue.h
@@ -30,10 +30,11 @@ class MCValue {
int64_t Cst;
public:
- int64_t getCst() const { return Cst; }
+ int64_t getConstant() const { return Cst; }
MCSymbol *getSymA() const { return SymA; }
MCSymbol *getSymB() const { return SymB; }
-
+
+ bool isConstant() const { return !SymA && !SymB; }
static MCValue get(MCSymbol *SymA, MCSymbol *SymB = 0, int64_t Val = 0) {
MCValue R;