Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenAction
commit6bf5537e0b2d67701a27f0591c5e97fb6fcf8f3c
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 18 Feb 2011 02:25:12 +0000 (18 02:25 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 18 Feb 2011 02:25:12 +0000 (18 02:25 +0000)
treeba454de9c55cb9e52010de9a138225f7fa4debe3
parent56a64c1d0ab3e9a61e2c0517afcf7892827e7b5a
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125820 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
examples/PrintFunctionNames/CMakeLists.txt
examples/clang-interpreter/main.cpp
include/clang/CodeGen/CodeGenAction.h
include/clang/Frontend/ASTConsumers.h
include/clang/Frontend/CompilerInstance.h
lib/CodeGen/CodeGenAction.cpp
lib/Frontend/CompilerInstance.cpp
tools/c-index-test/CMakeLists.txt
tools/c-index-test/Makefile
tools/driver/cc1_main.cpp
tools/libclang/CMakeLists.txt
tools/libclang/Makefile
unittests/Basic/Makefile
unittests/CMakeLists.txt
unittests/Frontend/FrontendActionTest.cpp
unittests/Frontend/Makefile