diff options
Diffstat (limited to 'include/clang/Serialization/GlobalModuleIndex.h')
-rw-r--r-- | include/clang/Serialization/GlobalModuleIndex.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/clang/Serialization/GlobalModuleIndex.h b/include/clang/Serialization/GlobalModuleIndex.h index 76414ba634cc..1f0d7523ec29 100644 --- a/include/clang/Serialization/GlobalModuleIndex.h +++ b/include/clang/Serialization/GlobalModuleIndex.h @@ -17,11 +17,11 @@ #define LLVM_CLANG_SERIALIZATION_GLOBAL_MODULE_INDEX_H #include "llvm/ADT/DenseMap.h" -#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" +#include <memory> #include <utility> namespace llvm { @@ -59,7 +59,7 @@ using serialization::ModuleFile; class GlobalModuleIndex { /// \brief Buffer containing the index file, which is lazily accessed so long /// as the global module index is live. - llvm::OwningPtr<llvm::MemoryBuffer> Buffer; + std::unique_ptr<llvm::MemoryBuffer> Buffer; /// \brief The hash table. /// @@ -186,6 +186,9 @@ public: /// \brief Print statistics to standard error. void printStats(); + /// \brief Print debugging view to standard error. + void dump(); + /// \brief Write a global index into the given /// /// \param FileMgr The file manager to use to load module files. |