[PATCH] D111198: [Support] Make consumeError, toString callable from code compiled with RTTI.
Lang Hames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 5 17:25:17 PDT 2021
lhames created this revision.
lhames added reviewers: dblaikie, v.g.vassilev.
Herald added subscribers: dexonsmith, hiraditya.
lhames requested review of this revision.
Herald added a project: LLVM.
This moves the toString(Error) function, and the failure-handling case of
consumeError, out-of-line. This enables calls to consumeError, toString,
errorToBool, and expectedToOptional from code compiled with RTTI turned on,
even if LLVM is built with RTTI turned off.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111198
Files:
llvm/include/llvm/Support/Error.h
llvm/lib/Support/Error.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111198.377395.patch
Type: text/x-patch
Size: 3509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/408c1254/attachment.bin>
More information about the llvm-commits
mailing list