aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSymbol.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-05 19:00:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-05 19:00:56 +0000
commit8d627d31531ad45fecca82d52cd34092c7c4cc1d (patch)
treed184ce54da093da005376dcb3a220509231b55df /include/llvm/MC/MCSymbol.h
parent3d720fbc6ad40bc9287a420f824d244965d24631 (diff)
downloadexternal_llvm-8d627d31531ad45fecca82d52cd34092c7c4cc1d.zip
external_llvm-8d627d31531ad45fecca82d52cd34092c7c4cc1d.tar.gz
external_llvm-8d627d31531ad45fecca82d52cd34092c7c4cc1d.tar.bz2
MC: Make setVariableValue check the redefinition condition a bit more strongly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSymbol.h')
-rw-r--r--include/llvm/MC/MCSymbol.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h
index 2b254b9..2ee7dd4 100644
--- a/include/llvm/MC/MCSymbol.h
+++ b/include/llvm/MC/MCSymbol.h
@@ -131,10 +131,7 @@ namespace llvm {
return Value;
}
- void setVariableValue(const MCExpr *Value) {
- assert(Value && "Invalid variable value!");
- this->Value = Value;
- }
+ void setVariableValue(const MCExpr *Value);
/// @}