diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-06-29 19:51:00 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-29 19:51:00 +0000 |
| commit | 586d46398f1fcf9cfd88df95ba9346e9f4b522d1 (patch) | |
| tree | 5fa4944df0ac3cb78866761e53843dcca976e9d6 /lib/MC | |
| parent | fc8a04aebe88b88db9059b5c20423014f9d043ab (diff) | |
| download | external_llvm-586d46398f1fcf9cfd88df95ba9346e9f4b522d1.zip external_llvm-586d46398f1fcf9cfd88df95ba9346e9f4b522d1.tar.gz external_llvm-586d46398f1fcf9cfd88df95ba9346e9f4b522d1.tar.bz2 | |
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 'lib/MC')
| -rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index e38f2b3..eebb58c 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -66,11 +66,11 @@ static inline raw_ostream &operator<<(raw_ostream &os, const MCValue &Value) { os << Value.getSymA()->getName(); if (Value.getSymB()) os << " - " << Value.getSymB()->getName(); - if (Value.getCst()) - os << " + " << Value.getCst(); + if (Value.getConstant()) + os << " + " << Value.getConstant(); } else { assert(!Value.getSymB() && "Invalid machine code value!"); - os << Value.getCst(); + os << Value.getConstant(); } return os; @@ -83,7 +83,7 @@ static inline int64_t truncateToSize(int64_t Value, unsigned Bytes) { static inline MCValue truncateToSize(const MCValue &Value, unsigned Bytes) { return MCValue::get(Value.getSymA(), Value.getSymB(), - truncateToSize(Value.getCst(), Bytes)); + truncateToSize(Value.getConstant(), Bytes)); } void MCAsmStreamer::SwitchSection(MCSection *Section) { |
