blob: c33b8df9126d66d023440020b89a2c27e68ea597 [file] [log] [blame]
//===-- CompileGo.h -------------------------------------------------------===//
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Defines the CompileGo class (helper for driver functionality).
#include "Tool.h"
namespace gollvm {
namespace driver {
class ToolChain;
class Compilation;
class Action;
class Artifact;
class CompileGoImpl;
// Concrete go compiler tool. This tool is used by the driver to carry
// out "compile" actions, e.g. "compile this set of Go files into
// assembly".
class CompileGo : public InternalTool {
CompileGo(ToolChain &tc, const std::string &executablePath);
// Perform compilation.
bool performAction(Compilation &compilation,
const Action &jobAction,
const ArtifactList &inputArtifacts,
const Artifact &output) override;
std::unique_ptr<CompileGoImpl> impl_;
} // end namespace driver
} // end namespace gollvm