From 9386bde11b7f996e6ce7c69a288f896d0c6bb480 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Sat, 24 Feb 2018 00:40:50 +0000 Subject: [WebAssembly] Add exception handling option and feature Summary: Add a llc command line option and WebAssembly architecture feature for exception handling. Reviewers: dschuff Subscribers: jfb, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D43683 llvm-svn: 326004 --- llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h b/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h index c999f501a9c..c2ced236dbd 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h @@ -33,6 +33,7 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo { bool HasAtomics; bool HasNontrappingFPToInt; bool HasSignExt; + bool HasExceptionHandling; /// String name of used CPU. std::string CPUString; @@ -80,6 +81,7 @@ public: bool hasAtomics() const { return HasAtomics; } bool hasNontrappingFPToInt() const { return HasNontrappingFPToInt; } bool hasSignExt() const { return HasSignExt; } + bool hasExceptionHandling() const { return HasExceptionHandling; } /// Parses features string setting specified subtarget options. Definition of /// function is auto generated by tblgen. -- cgit v1.2.3