LLVM  14.0.0git
Error.cpp
Go to the documentation of this file.
1 //===- llvm/Testing/Support/Error.cpp -------------------------------------===//
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 
10 
11 #include "llvm/ADT/StringRef.h"
12 
13 using namespace llvm;
14 
16  std::vector<std::shared_ptr<ErrorInfoBase>> Infos;
18  [&Infos](std::unique_ptr<ErrorInfoBase> Info) {
19  Infos.emplace_back(std::move(Info));
20  });
21  return {std::move(Infos)};
22 }
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
StringRef.h
Error.h
llvm::detail::ErrorHolder
Definition: SupportHelpers.h:25
llvm::detail::TakeError
ErrorHolder TakeError(Error Err)
Definition: Error.cpp:15
Info
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
move
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
Definition: README.txt:546
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157
llvm::handleAllErrors
void handleAllErrors(Error E, HandlerTs &&... Handlers)
Behaves the same as handleErrors, except that by contract all errors must be handled by the given han...
Definition: Error.h:958