diff options
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()); +} |