LLZK
2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Errors.h
Go to the documentation of this file.
1
//===-- Errors.h - llzk-witgen error helpers --------------------*- C++ -*-===//
2
//
3
// Part of the LLZK Project, under the Apache License v2.0.
4
// See LICENSE.txt for license information.
5
// Copyright 2026 Project LLZK
6
// SPDX-License-Identifier: Apache-2.0
7
//
8
//===----------------------------------------------------------------------===//
9
10
#pragma once
11
12
#include <llvm/ADT/Twine.h>
13
#include <llvm/Support/Error.h>
14
15
namespace
llzk::witgen
{
16
18
inline
llvm::Error
makeError
(
const
llvm::Twine &msg) {
19
return
llvm::createStringError(llvm::inconvertibleErrorCode(), msg.str());
20
}
21
22
}
// namespace llzk::witgen
llzk::witgen
Definition
Errors.h:15
llzk::witgen::makeError
llvm::Error makeError(const llvm::Twine &msg)
Build a string-backed error for user-facing witgen failures.
Definition
Errors.h:18
tools
llzk-witgen
Errors.h
Generated by
1.14.0
Copyright 2025 Veridise Inc. under the Apache License v2.0. Copyright 2026 Project LLZK under the Apache License v2.0.