diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-14 00:51:14 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-14 00:51:14 +0000 |
commit | 47b3ec4daa12019b98468e8f646501ec285bbb59 (patch) | |
tree | 2e0a430f6e382ac08b188f23300d8a33c937757f /include/llvm/MC/MCAsmLayout.h | |
parent | 9005d45a990ef46f06800bd6bd6a7d1298a33645 (diff) | |
download | llvm-47b3ec4daa12019b98468e8f646501ec285bbb59.tar.gz llvm-47b3ec4daa12019b98468e8f646501ec285bbb59.tar.bz2 llvm-47b3ec4daa12019b98468e8f646501ec285bbb59.tar.xz |
MC: Switch to completely lazy layout.
- The eliminates the last major algorithmic problem with MC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r-- | include/llvm/MC/MCAsmLayout.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h index 991d262135..b9565ba061 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -41,6 +41,10 @@ private: /// lower ordinal will be up to date. mutable MCFragment *LastValidFragment; + /// \brief Make sure that the layout for the given fragment is valid, lazily + /// computing it if necessary. + void EnsureValid(const MCFragment *F) const; + bool isSectionUpToDate(const MCSectionData *SD) const; bool isFragmentUpToDate(const MCFragment *F) const; |