blob: 7c27778a6701d66197942236d11444bd7ed7ccfc [file] [log] [blame]
//===-- IntegAssembler.h --------------------------------------------------===//
// Copyright 2020 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 IntegAssembler class (helper for driver functionality).
#include "Tool.h"
namespace gollvm {
namespace driver {
class ToolChain;
class Compilation;
class Action;
class Artifact;
class IntegAssemblerImpl;
// Integrated assembler tool. This tool is used by the driver to carry
// out "assemble" actions when -fintegrated-as is in effect, e.g. "compile
// this assembly file down to an object".
class IntegAssembler : public InternalTool {
IntegAssembler(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<IntegAssemblerImpl> impl_;
} // end namespace driver
} // end namespace gollvm