aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorAlex Brachet <alexbrachetmialot@gmail.com>2020-03-11 23:45:58 -0400
committerAlex Brachet <alexbrachetmialot@gmail.com>2020-03-11 23:45:58 -0400
commitb47c9f535c8a0fffeb7634a82e3901d416915938 (patch)
tree0ba3321ac6125a98167ddef64733e3e3ce706712 /clang/lib/Frontend/FrontendActions.cpp
parent6aebf0ee56e52afad3887b4230d7ed1beaf0bede (diff)
downloadllvm-b47c9f535c8a0fffeb7634a82e3901d416915938.zip
llvm-b47c9f535c8a0fffeb7634a82e3901d416915938.tar.gz
llvm-b47c9f535c8a0fffeb7634a82e3901d416915938.tar.bz2
[libc] Add initial assert definition
Summary: This patch adds a temporary `__assert_fail` and `assert` definition to make it available to internal llvm libc code. `__assert_fail` writes to fd 2 directly instead of `stderr`, using SYS_write. I have not put it in its own linux directory because this is temporary and it should be using stdio's api in the future. It does not currently print out the line number (although we could do that by stringifying `__LINE__` if reviewers wish). Reviewers: sivachandra, gchatelet, PaulkaToast Reviewed By: sivachandra Subscribers: mgorny, MaskRay, tschuett, libc-commits Differential Revision: https://reviews.llvm.org/D75420
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions