Skip to content

Commit

Permalink
cc: Refactor cc action includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Oct 27, 2023
1 parent 52f1575 commit 71212c9
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ VAST_RELAX_WARNINGS
VAST_UNRELAX_WARNINGS

#include "vast/Util/Common.hpp"
#include "vast/Frontend/CompilerInstance.hpp"
#include "vast/Frontend/FrontendAction.hpp"
#include "vast/Frontend/CompilerInstance.hpp"
#include "vast/CodeGen/Generator.hpp"

namespace llvm {
Expand Down
22 changes: 0 additions & 22 deletions include/vast/Frontend/Builder.hpp

This file was deleted.

1 change: 0 additions & 1 deletion include/vast/Frontend/CompilerInvocation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ VAST_RELAX_WARNINGS
VAST_UNRELAX_WARNINGS

#include "vast/Frontend/Diagnostics.hpp"
#include "vast/Frontend/CompilerInstance.hpp"
#include "vast/Frontend/Options.hpp"

namespace vast::cc
Expand Down
2 changes: 1 addition & 1 deletion include/vast/Frontend/Driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ VAST_RELAX_WARNINGS
VAST_UNRELAX_WARNINGS

#include "vast/Frontend/Diagnostics.hpp"
#include "vast/Frontend/GenAction.hpp"
#include "vast/Frontend/Action.hpp"

#include "vast/Config/config.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023-present, Trail of Bits, Inc.

#include "vast/Frontend/GenAction.hpp"
#include "vast/Frontend/Action.hpp"
#include "vast/Util/Warnings.hpp"

VAST_RELAX_WARNINGS
Expand Down
2 changes: 1 addition & 1 deletion lib/vast/Frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2022-present, Trail of Bits, Inc.

add_vast_library(Frontend
GenAction.cpp
Action.cpp
Options.cpp

LINK_LIBS PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion tools/vast-front/cc1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ VAST_RELAX_WARNINGS
#include <llvm/Support/Timer.h>
VAST_UNRELAX_WARNINGS

#include "vast/Frontend/CompilerInstance.hpp"
#include "vast/Frontend/CompilerInvocation.hpp"
#include "vast/Frontend/CompilerInstance.hpp"
#include "vast/Frontend/Diagnostics.hpp"

using namespace vast::cc;
Expand Down
5 changes: 1 addition & 4 deletions tools/vast-front/compiler_invocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ VAST_RELAX_WARNINGS
#include <llvm/Option/OptTable.h>
VAST_UNRELAX_WARNINGS

#include "vast/Frontend/Action.hpp"
#include "vast/Frontend/CompilerInstance.hpp"
#include "vast/Frontend/GenAction.hpp"

namespace vast::cc
{
using frontend_action_ptr = std::unique_ptr< clang::FrontendAction >;
using compiler_instance = clang::CompilerInstance;

frontend_action_ptr create_frontend_action(compiler_instance &ci, const vast_args &vargs) {
auto &opts = ci.getFrontendOpts();
auto act = opts.ProgramAction;
Expand Down

0 comments on commit 71212c9

Please sign in to comment.