[libc-commits] [PATCH] D75393: [libc] Add a convenience type spec for _Noreturn.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Feb 28 16:16:20 PST 2020
sivachandra created this revision.
sivachandra added a reviewer: abrachet.
Herald added subscribers: libc-commits, tschuett, MaskRay.
Herald added a project: libc-project.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75393
Files:
libc/spec/spec.td
Index: libc/spec/spec.td
===================================================================
--- libc/spec/spec.td
+++ libc/spec/spec.td
@@ -39,6 +39,9 @@
def VoidPtr : PtrType<VoidType>;
def SizeTType : NamedType<"size_t">;
+// _Noreturn is really not a type, but it is convenient to treat it as a type.
+def NoReturn : NamedType<"_Noreturn void">;
+
class Macro<string name> {
string Name = name;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75393.247388.patch
Type: text/x-patch
Size: 410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200229/8ae3177a/attachment.bin>
More information about the libc-commits
mailing list