diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-05 17:41:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-05 17:41:00 +0000 |
commit | 08a408a4b3224627db07eb27e174085d8e1d2426 (patch) | |
tree | 22edf93747a69faac16661121c09a3d639a462a4 /include/llvm | |
parent | ae7fb0b03ebc524e6c47f0262b8dc87810fee1a8 (diff) | |
download | external_llvm-08a408a4b3224627db07eb27e174085d8e1d2426.zip external_llvm-08a408a4b3224627db07eb27e174085d8e1d2426.tar.gz external_llvm-08a408a4b3224627db07eb27e174085d8e1d2426.tar.bz2 |
MC: Rename MCSymbol::{g,s}etValue -> MCSymbol::{g,s}etVariableValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCSymbol.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h index fb96506..2b254b9 100644 --- a/include/llvm/MC/MCSymbol.h +++ b/include/llvm/MC/MCSymbol.h @@ -125,11 +125,14 @@ namespace llvm { return Value != 0; } - /// getValue() - Get the value for variable symbols, or null if the symbol - /// is not a variable. - const MCExpr *getValue() const { return Value; } + /// getValue() - Get the value for variable symbols. + const MCExpr *getVariableValue() const { + assert(isVariable() && "Invalid accessor!"); + return Value; + } - void setValue(const MCExpr *Value) { + void setVariableValue(const MCExpr *Value) { + assert(Value && "Invalid variable value!"); this->Value = Value; } |