[clang] [clang][bytecode] Support compile-time exceptions (PR #189410)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 4 07:48:33 PDT 2026


================
@@ -0,0 +1,52 @@
+//===----------------------- Exceptions.h  ----------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_AST_INTERP_EXCEPTIONS_H
+#define LLVM_CLANG_AST_INTERP_EXCEPTIONS_H
+
+#include "PrimType.h"
+#include "clang/Basic/OptionalUnsigned.h"
+#include "clang/Basic/SourceLocation.h"
+
+namespace clang {
+class Type;
+class ASTContext;
+
+namespace interp {
+class Block;
+
+struct ExceptionTableEntry {
+  unsigned CodeStart;
+  unsigned CodeEnd;
+  unsigned Target;
+  UnsignedOrNone DeclOffset;
----------------
zwuis wrote:

Unused data member?

https://github.com/llvm/llvm-project/pull/189410


More information about the cfe-commits mailing list