[llvm] [orc-rt] Make BootstrapInfo construction noexcept. (PR #226459)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 04:54:14 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/226459
These methods should never throw.
>From 8f38b27ee143d95f2ffb4ab0f6cb327755d9e22c Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Fri, 25 Sep 2026 19:33:10 +1000
Subject: [PATCH] [orc-rt] Make BootstrapInfo construction noexcept.
These methods should never throw.
---
orc-rt/include/orc-rt/bedrock/BootstrapInfo.h | 4 ++--
orc-rt/lib/bedrock/BootstrapInfo.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/orc-rt/include/orc-rt/bedrock/BootstrapInfo.h b/orc-rt/include/orc-rt/bedrock/BootstrapInfo.h
index 61acda3dc8a90d..bb2eb2c3debe5b 100644
--- a/orc-rt/include/orc-rt/bedrock/BootstrapInfo.h
+++ b/orc-rt/include/orc-rt/bedrock/BootstrapInfo.h
@@ -38,7 +38,7 @@ class BootstrapInfo {
/// Construct a BootstrapInfo object from the given Session, Symbols, and
/// Values.
BootstrapInfo(Session &S, SimpleSymbolTable Symbols = {},
- ValueMap Values = {});
+ ValueMap Values = {}) noexcept;
/// Construct with a default initial symbols and values.
///
@@ -49,7 +49,7 @@ class BootstrapInfo {
static Expected<BootstrapInfo>
CreateDefault(Session &S,
InitialSymbolsBuilder AddInitialSymbols = sps_ci::addAll,
- InitialValuesBuilder AddInitialValues = {});
+ InitialValuesBuilder AddInitialValues = {}) noexcept;
const Session &session() const noexcept { return S; }
diff --git a/orc-rt/lib/bedrock/BootstrapInfo.cpp b/orc-rt/lib/bedrock/BootstrapInfo.cpp
index c65ca3cf075415..8d59eaa0d7a928 100644
--- a/orc-rt/lib/bedrock/BootstrapInfo.cpp
+++ b/orc-rt/lib/bedrock/BootstrapInfo.cpp
@@ -19,13 +19,13 @@
namespace orc_rt {
BootstrapInfo::BootstrapInfo(Session &S, SimpleSymbolTable Symbols,
- ValueMap Values)
+ ValueMap Values) noexcept
: S(S), Symbols(std::move(Symbols)), Values(std::move(Values)) {}
Expected<BootstrapInfo>
BootstrapInfo::CreateDefault(Session &S,
InitialSymbolsBuilder AddInitialSymbols,
- InitialValuesBuilder AddInitialValues) {
+ InitialValuesBuilder AddInitialValues) noexcept {
SimpleSymbolTable InitialSymbols;
// Add session symbol.
More information about the llvm-commits
mailing list