Add some basic fp intrinsics for AVX
[oota-llvm.git] / lib / MC / MCSymbol.cpp
index 82d72a3e95b3be2981d00da73cc5716155e0b86e..07751f7298443e5de4e9e0ea432a954be66114bb 100644 (file)
@@ -44,6 +44,10 @@ void MCSymbol::setVariableValue(const MCExpr *Value) {
   assert((isUndefined() || (isAbsolute() && isa<MCConstantExpr>(Value))) &&
          "Invalid redefinition!");
   this->Value = Value;
+
+  // Mark the variable as absolute as appropriate.
+  if (isa<MCConstantExpr>(Value))
+    setAbsolute();
 }
 
 void MCSymbol::print(raw_ostream &OS) const {