MC/Expr: Simplify.

llvm-svn: 122023
This commit is contained in:
Daniel Dunbar 2010-12-17 02:05:45 +00:00
parent 4f64c5aa70
commit e491ea4630
2 changed files with 4 additions and 9 deletions

View File

@ -93,7 +93,10 @@ public:
/// @param Res - The relocatable value, if evaluation succeeds.
/// @param Layout - The assembler layout object to use for evaluating values.
/// @result - True on success.
bool EvaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout = 0) const;
bool EvaluateAsRelocatable(MCValue &Res,
const MCAsmLayout *Layout = 0) const {
return EvaluateAsRelocatableImpl(Res, Layout, 0, false);
}
/// @}

View File

@ -355,14 +355,6 @@ static bool EvaluateSymbolicAdd(const MCAsmLayout *Layout,
return true;
}
bool MCExpr::EvaluateAsRelocatable(MCValue &Res,
const MCAsmLayout *Layout) const {
if (Layout)
return EvaluateAsRelocatableImpl(Res, Layout, 0, false);
else
return EvaluateAsRelocatableImpl(Res, 0, 0, false);
}
bool MCExpr::EvaluateAsRelocatableImpl(MCValue &Res,
const MCAsmLayout *Layout,
const SectionAddrMap *Addrs,