mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
MC/Expr: Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90675c882d
commit
8f714fedba
@ -93,7 +93,10 @@ public:
|
|||||||
/// @param Res - The relocatable value, if evaluation succeeds.
|
/// @param Res - The relocatable value, if evaluation succeeds.
|
||||||
/// @param Layout - The assembler layout object to use for evaluating values.
|
/// @param Layout - The assembler layout object to use for evaluating values.
|
||||||
/// @result - True on success.
|
/// @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);
|
||||||
|
}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
|
@ -355,14 +355,6 @@ static bool EvaluateSymbolicAdd(const MCAsmLayout *Layout,
|
|||||||
return true;
|
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,
|
bool MCExpr::EvaluateAsRelocatableImpl(MCValue &Res,
|
||||||
const MCAsmLayout *Layout,
|
const MCAsmLayout *Layout,
|
||||||
const SectionAddrMap *Addrs,
|
const SectionAddrMap *Addrs,
|
||||||
|
Loading…
Reference in New Issue
Block a user