MC: Constify MCAsmLayout argument to MCExpr::EvaluteAs...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-03-12 21:00:45 +00:00
parent 8315a357e4
commit a0e36d55c4
6 changed files with 18 additions and 16 deletions

View File

@@ -37,7 +37,7 @@ void X86MCTargetExpr::PrintImpl(raw_ostream &OS) const {
}
bool X86MCTargetExpr::EvaluateAsRelocatableImpl(MCValue &Res,
MCAsmLayout *Layout) const {
const MCAsmLayout *Layout) const {
// FIXME: I don't know if this is right, it followed MCSymbolRefExpr.
// Evaluate recursively if this is a variable.

View File

@@ -41,7 +41,7 @@ public:
MCContext &Ctx);
void PrintImpl(raw_ostream &OS) const;
bool EvaluateAsRelocatableImpl(MCValue &Res, MCAsmLayout *Layout) const;
bool EvaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout) const;
};
} // end namespace llvm