diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-25 12:25:39 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-25 12:25:39 -0800 |
commit | 2a5c6e40d0a9d279750f84a3678c3e4d23061301 (patch) | |
tree | 7714a0b54ab9b3fb492b0c79505671b1310ff8d8 /lib/Driver/ToolChains.cpp | |
parent | ec1178a11d6dbeb371f45dd94a1d1c0849bbf1cb (diff) | |
parent | 632c823b8bfd3fd5a4b77628eddd6161c5d8367e (diff) |
Merge branch 'master' of github.com:sunfishcode/emscripten-fastcomp-clang into incoming
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index fffba0e4e5..2f3cf15490 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1738,6 +1738,36 @@ bool TCEToolChain::isPICDefaultForced() const { return false; } +/// EmscriptenToolChain - A tool chain for the Emscripten C/C++ to JS compiler. + +EmscriptenToolChain::EmscriptenToolChain(const Driver &D, const llvm::Triple& Triple, + const ArgList &Args) + : ToolChain(D, Triple, Args) { +} + +EmscriptenToolChain::~EmscriptenToolChain() { +} + +bool EmscriptenToolChain::IsMathErrnoDefault() const { + return false; +} + +bool EmscriptenToolChain::IsObjCNonFragileABIDefault() const { + return true; +} + +bool EmscriptenToolChain::isPICDefault() const { + return false; +} + +bool EmscriptenToolChain::isPIEDefault() const { + return false; +} + +bool EmscriptenToolChain::isPICDefaultForced() const { + return false; +} + /// OpenBSD - OpenBSD tool chain which can call as(1) and ld(1) directly. OpenBSD::OpenBSD(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) |