[WebAssembly] Add an `isWasm` target triple predicate.
authorDan Gohman <sunfish@mozilla.com>
Thu, 27 Feb 2020 15:49:56 +0000 (07:49 -0800)
committerDan Gohman <sunfish@mozilla.com>
Thu, 27 Feb 2020 15:55:01 +0000 (07:55 -0800)
commitc08384a3aeeb81646750543cd5637e096d6fc4b1
tree699ad5169a305ae99780a3192934ad0587addac9
parent080890a9f38ff63f9693b55b263dc433ba8bed7a
[WebAssembly] Add an `isWasm` target triple predicate.

This simplies code which needs to apply the same logic to both wasm32
and wasm64.

This patch is part of https://reviews.llvm.org/D70700.
llvm/include/llvm/ADT/Triple.h