diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-02-18 02:25:12 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-02-18 02:25:12 +0000 |
commit | 14a552b2d71d4a4cf496953f62bc1337cbd8f9dc (patch) | |
tree | 0d8fbcdcbefb1d1574637634383be6c5c857f4b3 /clang/examples/clang-interpreter/main.cpp | |
parent | 3ae6caaf1bddccbc8c8281ec1b67f918df954d87 (diff) | |
download | bcm5719-llvm-14a552b2d71d4a4cf496953f62bc1337cbd8f9dc.tar.gz bcm5719-llvm-14a552b2d71d4a4cf496953f62bc1337cbd8f9dc.zip |
Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenAction
This removes the final dependency edge from any lib outside of CodeGen
to core. As a result we can, and do, trim the dependency on core
from libclang, PrintFunctionNames, the unit tests and c-index-test.
While at it, review and trim other unneeded dependencies.
llvm-svn: 125820
Diffstat (limited to 'clang/examples/clang-interpreter/main.cpp')
-rw-r--r-- | clang/examples/clang-interpreter/main.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp index 835a5a90ad1..a99766f9a31 100644 --- a/clang/examples/clang-interpreter/main.cpp +++ b/clang/examples/clang-interpreter/main.cpp @@ -17,7 +17,6 @@ #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Frontend/TextDiagnosticPrinter.h" -#include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Config/config.h" #include "llvm/ADT/OwningPtr.h" @@ -130,7 +129,6 @@ int main(int argc, const char **argv, char * const *envp) { // Create a compiler instance to handle the actual work. CompilerInstance Clang; - Clang.setLLVMContext(new llvm::LLVMContext); Clang.setInvocation(CI.take()); // Create the compilers actual diagnostics engine. |