]> granicus.if.org Git - clang/commit
Frontend: Pull CodeGenAction out more, and eliminate CreateBackendConsumer.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 25 Feb 2010 04:37:45 +0000 (04:37 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 25 Feb 2010 04:37:45 +0000 (04:37 +0000)
commit4ee34616c6fa7700e27c0a5311718d844cbb7d2c
tree8ee68707f0a9a26b410050073a33bcc882b8bd9a
parent5d64f8a05ae080f029f0379ed834572065038e28
Frontend: Pull CodeGenAction out more, and eliminate CreateBackendConsumer.

This is the way I would like to move the frontend function towards -- distinct
pieces of functionality should be exposed only via FrontendAction
implementations which have clean and relatively-stable APIs.

This also isolates the surface area in clang which depends on LLVM CodeGen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97110 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTConsumers.h
include/clang/Frontend/CodeGenAction.h [new file with mode: 0644]
include/clang/Frontend/FrontendActions.h
lib/Frontend/CodeGenAction.cpp [moved from lib/Frontend/Backend.cpp with 87% similarity]
lib/Frontend/FrontendActions.cpp
tools/driver/cc1_main.cpp