aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-02 11:12:41 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-02 11:12:41 +0000
commit8df5c9b5d65beec807e4e77dae2813dd193f77dd (patch)
tree01fe825c65ad0910ddd91905bee02d65629d19a9 /include/clang
parentf33740efdb2d836a96ba97ca3004d46404401439 (diff)
Add a debugging dump for Module (also emitted as part of the AST
reader statistics), to show the local-to-global mappings. The only such mapping we have (at least, for now) is for source location offsets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Serialization/ASTReader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h
index bcf5384bc6..e28179d335 100644
--- a/include/clang/Serialization/ASTReader.h
+++ b/include/clang/Serialization/ASTReader.h
@@ -176,8 +176,7 @@ enum ModuleKind {
/// Each instance of the Module class corresponds to a single AST file, which
/// may be a precompiled header, precompiled preamble, or an AST file of some
/// sort loaded as the main file, all of which are specific formulations of
-/// the general notion of a "module". A module may depend on another module
-/// (FIXME: or a set of other modules).
+/// the general notion of a "module". A module may depend on another module.
class Module {
public:
Module(ModuleKind Kind);
@@ -403,6 +402,9 @@ public:
/// \brief List of modules which this module depends on
llvm::SetVector<Module *> Imports;
+
+ /// \brief Dump debugging output for this module.
+ void dump();
};
/// \brief The manager for modules loaded by the ASTReader.