From 86100e13abc6182d2dd51eeb491b113d5a070fa1 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 17 May 2016 16:03:02 +0200 Subject: [PATCH] clover/llvm: Trivial assorted cleanups for invocation.cpp. Drop a few include and using directives which are no longer necessary. Reviewed-by: Serge Martin Tested-by: Jan Vesely --- .../state_trackers/clover/llvm/invocation.cpp | 57 +++---------------- 1 file changed, 7 insertions(+), 50 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 1d7b0d34924..23971bb9f9e 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -31,70 +31,27 @@ #include "core/compiler.hpp" #include "util/algorithm.hpp" -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include -#include - - -#include -#include -#include - #include -#include -#include -#include "pipe/p_state.h" -#include "util/u_memory.h" -#include "util/u_math.h" - -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include using namespace clover; using namespace clover::llvm; -using ::llvm::cast; -using ::llvm::dyn_cast; using ::llvm::Function; -using ::llvm::isa; using ::llvm::LLVMContext; using ::llvm::Module; using ::llvm::raw_string_ostream; -using ::llvm::TargetMachine; namespace { - // XXX - Temporary hack to avoid breaking the build for the moment, will - // get rid of this later. - namespace llvm { - using namespace ::llvm; - } - void init_targets() { static bool targets_initialized = false; @@ -249,7 +206,7 @@ namespace { pmb.populateModulePassManager(pm); pm.run(mod); } -} // End anonymous namespace +} module clover::compile_program_llvm(const std::string &source, -- 2.30.2