LLVM  8.0.1
Error.cpp
Go to the documentation of this file.
1 //===- llvm/Testing/Support/Error.cpp -------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 
12 #include "llvm/ADT/StringRef.h"
13 
14 using namespace llvm;
15 
17  std::vector<std::shared_ptr<ErrorInfoBase>> Infos;
18  handleAllErrors(std::move(Err),
19  [&Infos](std::unique_ptr<ErrorInfoBase> Info) {
20  Infos.emplace_back(std::move(Info));
21  });
22  return {std::move(Infos)};
23 }
ErrorHolder TakeError(Error Err)
Definition: Error.cpp:16
This class represents lattice values for constants.
Definition: AllocatorList.h:24
Analysis containing CSE Info
Definition: CSEInfo.cpp:21
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:905
Lightweight error class with error context and mandatory checking.
Definition: Error.h:158