aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-02-19 21:39:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-02-19 21:39:31 +0000
commita6d2bff0c5b03eb394c32f291a883059f68f4f37 (patch)
tree73c83ae0d2b1189db5af86dc643f263d4b845df0 /clang/lib/Frontend/CompilerInstance.cpp
parentf7fa56f25f4b14e0886b2acdc15f399769c1d5b0 (diff)
downloadllvm-a6d2bff0c5b03eb394c32f291a883059f68f4f37.zip
llvm-a6d2bff0c5b03eb394c32f291a883059f68f4f37.tar.gz
llvm-a6d2bff0c5b03eb394c32f291a883059f68f4f37.tar.bz2
Revert 125820 and 125819 to fix PR9266.
llvm-svn: 126050
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index fd593de..412e711 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -27,6 +27,7 @@
#include "clang/Frontend/Utils.h"
#include "clang/Serialization/ASTReader.h"
#include "clang/Sema/CodeCompleteConsumer.h"
+#include "llvm/LLVMContext.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
@@ -46,6 +47,10 @@ CompilerInstance::CompilerInstance()
CompilerInstance::~CompilerInstance() {
}
+void CompilerInstance::setLLVMContext(llvm::LLVMContext *Value) {
+ LLVMContext.reset(Value);
+}
+
void CompilerInstance::setInvocation(CompilerInvocation *Value) {
Invocation.reset(Value);
}