diff options
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 6b0fdb8a343..a630486688e 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -38,14 +38,19 @@ using namespace clang; CompilerInstance::CompilerInstance(llvm::LLVMContext *_LLVMContext, bool _OwnsLLVMContext) : LLVMContext(_LLVMContext), - OwnsLLVMContext(_OwnsLLVMContext) { - } + OwnsLLVMContext(_OwnsLLVMContext), + Invocation(new CompilerInvocation) { +} CompilerInstance::~CompilerInstance() { if (OwnsLLVMContext) delete LLVMContext; } +void CompilerInstance::setInvocation(CompilerInvocation *Value) { + Invocation.reset(Value); +} + void CompilerInstance::setDiagnostics(Diagnostic *Value) { Diagnostics.reset(Value); } |

