Files
swift-mirror/lib/Driver/ToolChains.cpp
2014-03-07 05:34:41 +00:00

31 lines
912 B
C++

//===--- ToolChains.cpp - ToolChain Implementations -----------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "ToolChains.h"
#include "Tools.h"
using namespace swift;
using namespace swift::driver;
using namespace swift::driver::toolchains;
using namespace llvm::opt;
/// Darwin
std::unique_ptr<Tool> Darwin::buildLinker() const {
return std::unique_ptr<Tool>(new tools::darwin::Linker(*this));
}
StringRef Darwin::getDarwinArchName(const ArgList &Args) const {
return getArchName();
}