blob: 9c8d259c16eac955114e42fc1b6b70f937e55f38 [file] [log] [blame]
//===-- Tool.cpp ----------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
//
// Gollvm driver helper class Tool methods.
//
//===----------------------------------------------------------------------===//
#include "Tool.h"
namespace gollvm {
namespace driver {
Tool::Tool(const char *name, ToolChain &tc, ToolClass klass)
: name_(name), toolchain_(tc), klass_(klass)
{
}
Tool::~Tool()
{
}
InternalTool::InternalTool(const char *name, ToolChain &tc)
: Tool(name, tc, Tool::Internal)
{
}
InternalTool::~InternalTool()
{
}
ExternalTool::ExternalTool(const char *name, ToolChain &tc)
: Tool(name, tc, Tool::External)
{
}
ExternalTool::~ExternalTool()
{
}
} // end namespace driver
} // end namespace gollvm