summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-13 04:12:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-13 04:12:06 +0000
commit546a676ae598f148e7e2a3ab08edfd5ab136d7df (patch)
tree50fe19dad2111227467242887079e4949159d995 /clang/lib/Frontend/CompilerInstance.cpp
parent636404a330b72b0ac4a61b7ef82b1f702af88301 (diff)
downloadbcm5719-llvm-546a676ae598f148e7e2a3ab08edfd5ab136d7df.tar.gz
bcm5719-llvm-546a676ae598f148e7e2a3ab08edfd5ab136d7df.zip
Add {File,Source}Manager to CompilerInstance.
llvm-svn: 87079
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index e791f24ee80..2d1f498e5ce 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -9,6 +9,8 @@
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Basic/Diagnostic.h"
+#include "clang/Basic/FileManager.h"
+#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/LLVMContext.h"
using namespace clang;
@@ -23,3 +25,11 @@ CompilerInstance::~CompilerInstance() {
if (OwnsLLVMContext)
delete LLVMContext;
}
+
+void CompilerInstance::createFileManager() {
+ FileMgr.reset(new FileManager());
+}
+
+void CompilerInstance::createSourceManager() {
+ SourceMgr.reset(new SourceManager());
+}
OpenPOWER on IntegriCloud