LLVM
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
lib
TextAPI
TextAPIError.cpp
Go to the documentation of this file.
1
//===- TextAPIError.cpp - Tapi Error ----------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
///
9
/// \file
10
/// \brief Implements TAPI Error.
11
///
12
//===----------------------------------------------------------------------===//
13
14
#include "
llvm/TextAPI/TextAPIError.h
"
15
16
using namespace
llvm
;
17
using namespace
llvm::MachO
;
18
19
char
TextAPIError::ID
= 0;
20
21
void
TextAPIError::log
(
raw_ostream
&
OS
)
const
{
22
switch
(
EC
) {
23
case
TextAPIErrorCode::NoSuchArchitecture
:
24
OS
<<
"no such architecture"
;
25
break
;
26
case
TextAPIErrorCode::InvalidInputFormat
:
27
OS
<<
"invalid input format"
;
28
break
;
29
default
:
30
llvm_unreachable
(
"unhandled TextAPIErrorCode"
);
31
}
32
if
(!
Msg
.empty())
33
OS
<<
": "
<<
Msg
;
34
OS
<<
"\n"
;
35
}
36
37
std::error_code
TextAPIError::convertToErrorCode
()
const
{
38
llvm_unreachable
(
"convertToErrorCode is not supported."
);
39
}
OS
raw_pwrite_stream & OS
Definition:
SampleProfWriter.cpp:51
TextAPIError.h
Define TAPI specific error codes.
llvm::MachO::TextAPIError::log
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition:
TextAPIError.cpp:21
llvm::MachO::TextAPIError::EC
TextAPIErrorCode EC
Definition:
TextAPIError.h:31
llvm::MachO::TextAPIError::convertToErrorCode
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition:
TextAPIError.cpp:37
llvm::MachO::TextAPIError::ID
static char ID
Definition:
TextAPIError.h:30
llvm::MachO::TextAPIError::Msg
std::string Msg
Definition:
TextAPIError.h:32
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition:
raw_ostream.h:52
llvm_unreachable
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Definition:
ErrorHandling.h:143
llvm::MachO
Definition:
MachO.h:25
llvm::MachO::TextAPIErrorCode::NoSuchArchitecture
@ NoSuchArchitecture
llvm::MachO::TextAPIErrorCode::InvalidInputFormat
@ InvalidInputFormat
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Tue Mar 25 2025 03:58:55 for LLVM by
1.9.6