MC: Share the MCAsmLayout object, although its still not used for anything important.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-03-22 20:35:35 +00:00
parent 62ef3c8910
commit 8d39eb47d6
2 changed files with 14 additions and 18 deletions

View File

@ -642,16 +642,17 @@ private:
/// Check whether a fixup can be satisfied, or whether it needs to be relaxed
/// (increased in size, in order to hold its value correctly).
bool FixupNeedsRelaxation(MCAsmFixup &Fixup, MCDataFragment *DF);
bool FixupNeedsRelaxation(MCAsmFixup &Fixup, MCDataFragment *DF,
const MCAsmLayout &Layout) const;
/// LayoutSection - Assign offsets and sizes to the fragments in the section
/// \arg SD, and update the section size. The section file offset should
/// already have been computed.
void LayoutSection(MCSectionData &SD);
void LayoutSection(MCSectionData &SD, MCAsmLayout &Layout);
/// LayoutOnce - Perform one layout iteration and return true if any offsets
/// were adjusted.
bool LayoutOnce();
bool LayoutOnce(MCAsmLayout &Layout);
public:
/// Find the symbol which defines the atom containing given address, inside