diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-12-17 02:05:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-12-17 02:05:45 +0000 |
commit | e491ea46302d2d5d164ce312ed51438880d6e4f3 (patch) | |
tree | d97b9c725501b125bbe3ec39ebb3b7041da54c1b | |
parent | 4f64c5aa70b6f432c5f249e665226de0732a91e5 (diff) | |
download | bcm5719-llvm-e491ea46302d2d5d164ce312ed51438880d6e4f3.tar.gz bcm5719-llvm-e491ea46302d2d5d164ce312ed51438880d6e4f3.zip |
MC/Expr: Simplify.
llvm-svn: 122023
-rw-r--r-- | llvm/include/llvm/MC/MCExpr.h | 5 | ||||
-rw-r--r-- | llvm/lib/MC/MCExpr.cpp | 8 |
2 files changed, 4 insertions, 9 deletions
diff --git a/llvm/include/llvm/MC/MCExpr.h b/llvm/include/llvm/MC/MCExpr.h index 6fa5e17f9a6..55e3f46a897 100644 --- a/llvm/include/llvm/MC/MCExpr.h +++ b/llvm/include/llvm/MC/MCExpr.h @@ -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); + } /// @} diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index b6673691723..4465104bfe5 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/lib/MC/MCExpr.cpp @@ -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, |