Revert "Move MCSymbol Value in to the union of Offset and CommonSize."
[oota-llvm.git] / lib / MC / MCSymbol.cpp
index 9ca85b08416422f6d93e3b9b452b81c077aa2b94..836d28294f55fb7823ae502ab93f497fbeaff0f6 100644 (file)
@@ -40,11 +40,7 @@ void *MCSymbol::operator new(size_t s, const StringMapEntry<bool> *Name,
 void MCSymbol::setVariableValue(const MCExpr *Value) {
   assert(!IsUsed && "Cannot set a variable that has already been used.");
   assert(Value && "Invalid variable value!");
-  assert((SymbolContents == SymContentsUnset ||
-          SymbolContents == SymContentsVariable) &&
-         "Cannot give common/offset symbol a variable value");
   this->Value = Value;
-  SymbolContents = SymContentsVariable;
   SectionOrFragment = nullptr;
 }