diff options
author | Sam Clegg <sbc@chromium.org> | 2019-05-24 17:36:07 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2019-05-24 17:36:07 +0000 |
commit | cebce0d49a997cdda62ee349e2a8763ddfbb84fe (patch) | |
tree | e58d38e51f919b5b4a04fa23e9fa1d1187b0a860 /clang/lib/Driver/ToolChains/WebAssembly.cpp | |
parent | 468724eed2911168f6b6913e83fc4d50e214d51f (diff) | |
download | bcm5719-llvm-cebce0d49a997cdda62ee349e2a8763ddfbb84fe.tar.gz bcm5719-llvm-cebce0d49a997cdda62ee349e2a8763ddfbb84fe.zip |
[WebAssembly] Use "linker" as linker shortname.
This is in line with other platforms.
Also, move the single statement methods into the header (also
in line with other platform).
Differential Revision: https://reviews.llvm.org/D62406
llvm-svn: 361651
Diffstat (limited to 'clang/lib/Driver/ToolChains/WebAssembly.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChains/WebAssembly.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Driver/ToolChains/WebAssembly.cpp b/clang/lib/Driver/ToolChains/WebAssembly.cpp index 657f686f8ae..af6e856b9f9 100644 --- a/clang/lib/Driver/ToolChains/WebAssembly.cpp +++ b/clang/lib/Driver/ToolChains/WebAssembly.cpp @@ -22,9 +22,6 @@ using namespace clang::driver::toolchains; using namespace clang; using namespace llvm::opt; -wasm::Linker::Linker(const ToolChain &TC) - : GnuTool("wasm::Linker", "lld", TC) {} - /// Following the conventions in https://wiki.debian.org/Multiarch/Tuples, /// we remove the vendor field to form the multiarch triple. static std::string getMultiarchTriple(const Driver &D, @@ -34,10 +31,6 @@ static std::string getMultiarchTriple(const Driver &D, TargetTriple.getOSAndEnvironmentName()).str(); } -bool wasm::Linker::isLinkJob() const { return true; } - -bool wasm::Linker::hasIntegratedCPP() const { return false; } - std::string wasm::Linker::getLinkerPath(const ArgList &Args) const { const ToolChain &ToolChain = getToolChain(); if (const Arg* A = Args.getLastArg(options::OPT_fuse_ld_EQ)) { |