summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAsmLayout.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-14 00:51:14 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-14 00:51:14 +0000
commit47b3ec4daa12019b98468e8f646501ec285bbb59 (patch)
tree2e0a430f6e382ac08b188f23300d8a33c937757f /include/llvm/MC/MCAsmLayout.h
parent9005d45a990ef46f06800bd6bd6a7d1298a33645 (diff)
downloadllvm-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.h4
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;