summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-07-07 20:11:29 +0000
committerAdrian Prantl <aprantl@apple.com>2015-07-07 20:11:29 +0000
commite50371b94800bfde7057c06da4e118a7a2ca283f (patch)
tree38882b868d3ac5a2a6afb46bdf60aab2e899aed0 /clang/lib/Basic/FileManager.cpp
parent7b315ea3c3598cf40147ff604be8b52cb222b0f3 (diff)
downloadbcm5719-llvm-e50371b94800bfde7057c06da4e118a7a2ca283f.tar.gz
bcm5719-llvm-e50371b94800bfde7057c06da4e118a7a2ca283f.zip
Wrap clang modules and pch files in an object file container.
This patch adds ObjectFilePCHContainerOperations uses the LLVM backend to put the contents of a PCH into a __clangast section inside a COFF, ELF, or Mach-O object file container. This is done to facilitate module debugging by makeing it possible to store the debug info for the types defined by a module alongside the AST. rdar://problem/20091852 llvm-svn: 241620
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r--clang/lib/Basic/FileManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp
index c46e2c7db38..1a636aefa63 100644
--- a/clang/lib/Basic/FileManager.cpp
+++ b/clang/lib/Basic/FileManager.cpp
@@ -19,6 +19,7 @@
#include "clang/Basic/FileManager.h"
#include "clang/Basic/FileSystemStatCache.h"
+#include "clang/Frontend/PCHContainerOperations.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/FileSystem.h"
@@ -585,3 +586,5 @@ void FileManager::PrintStats() const {
//llvm::errs() << PagesMapped << BytesOfPagesMapped << FSLookups;
}
+
+PCHContainerOperations::~PCHContainerOperations() {}
OpenPOWER on IntegriCloud