mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 18:54:55 +00:00
ELF: Change check(Expected<T>, const Twine &) to call toString instead of converting to an error code.
llvm-svn: 298155
This commit is contained in:
parent
4b78036ba8
commit
5758b2e488
@ -69,7 +69,7 @@ template <class T> T check(ErrorOr<T> E, const Twine &Prefix) {
|
||||
|
||||
template <class T> T check(Expected<T> E, const Twine &Prefix) {
|
||||
if (!E)
|
||||
fatal(Prefix + ": " + errorToErrorCode(E.takeError()).message());
|
||||
fatal(Prefix + ": " + toString(E.takeError()));
|
||||
return std::move(*E);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
## dynamic-section-sh_size.elf has incorrect sh_size of dynamic section.
|
||||
# RUN: not ld.lld %p/Inputs/dynamic-section-sh_size.elf -o %t2 2>&1 | \
|
||||
# RUN: FileCheck %s
|
||||
# CHECK: getSectionContentsAsArray failed: Invalid data was encountered while parsing the file
|
||||
# CHECK: getSectionContentsAsArray failed: invalid sh_entsize
|
||||
|
Loading…
Reference in New Issue
Block a user