diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-13 04:12:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-13 04:12:06 +0000 |
commit | 16b7449d86b843d0926b04f87104cf3fff7149fe (patch) | |
tree | e60343286dbbec3b805129da76224fea87e5380e /lib/Frontend | |
parent | 2a79e162a3fde25c1941151a67966830d873f2db (diff) |
Add {File,Source}Manager to CompilerInstance.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index e791f24ee8..2d1f498e5c 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/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()); +} |