ELF can handle some relocations of the form -sym + constant.
[oota-llvm.git] / lib / MC / MCExpr.cpp
index caa502086a0324111fc135cf53162b535a8bdaeb..56524031d69b8e0c0e41637f1276d1a556b96ed1 100644 (file)
@@ -585,11 +585,6 @@ EvaluateSymbolicAdd(const MCAssembler *Asm, const MCAsmLayout *Layout,
   const MCSymbolRefExpr *A = LHS_A ? LHS_A : RHS_A;
   const MCSymbolRefExpr *B = LHS_B ? LHS_B : RHS_B;
 
-  // If we have a negated symbol, then we must have also have a non-negated
-  // symbol in order to encode the expression.
-  if (B && !A)
-    return false;
-
   Res = MCValue::get(A, B, Result_Cst);
   return true;
 }