aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/PCHWriter.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-17 18:18:49 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-17 18:18:49 +0000
commit1de05feeeafe5b215fe7617594a7076a5192a6e2 (patch)
tree1adf57ca6434d22306af1104eb07a242c797760e /include/clang/Frontend/PCHWriter.h
parent5abd66ff444d31bd0537d8151b1abf354cfcb1af (diff)
PCH support for labels and goto.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PCHWriter.h')
-rw-r--r--include/clang/Frontend/PCHWriter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Frontend/PCHWriter.h b/include/clang/Frontend/PCHWriter.h
index 5828637b04..d8f43bb305 100644
--- a/include/clang/Frontend/PCHWriter.h
+++ b/include/clang/Frontend/PCHWriter.h
@@ -32,6 +32,7 @@ namespace llvm {
namespace clang {
class ASTContext;
+class LabelStmt;
class Preprocessor;
class SourceManager;
class SwitchCase;
@@ -113,6 +114,9 @@ private:
/// \brief Mapping from SwitchCase statements to IDs.
std::map<SwitchCase *, unsigned> SwitchCaseIDs;
+ /// \brief Mapping from LabelStmt statements to IDs.
+ std::map<LabelStmt *, unsigned> LabelIDs;
+
void WriteTargetTriple(const TargetInfo &Target);
void WriteLanguageOptions(const LangOptions &LangOpts);
void WriteSourceManagerBlock(SourceManager &SourceMgr);
@@ -182,6 +186,10 @@ public:
/// \brief Retrieve the ID for the given switch-case statement.
unsigned getSwitchCaseID(SwitchCase *S);
+ /// \brief Retrieve the ID for the given label statement, which may
+ /// or may not have been emitted yet.
+ unsigned GetLabelID(LabelStmt *S);
+
};
} // end namespace clang