diff options
author | Louis Dionne <ldionne@apple.com> | 2020-03-11 17:21:40 -0400 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2020-03-11 17:56:12 -0400 |
commit | e6eb942ffa4c920c6e906270c726299c838165aa (patch) | |
tree | a5a3a901862834dc9a3607cc7c5d1194d2042fae /libcxxabi/src | |
parent | fe30eb626854895c0702de1a4c8c2c80b619e3d4 (diff) | |
download | llvm-e6eb942ffa4c920c6e906270c726299c838165aa.zip llvm-e6eb942ffa4c920c6e906270c726299c838165aa.tar.gz llvm-e6eb942ffa4c920c6e906270c726299c838165aa.tar.bz2 |
[libc++abi] NFC: Simplify extern C declaration
It seems to me that abort_message.h is always included in a C++ file, so
it's fine to assume that it's C++ code.
Differential Revision: https://reviews.llvm.org/D76027
Diffstat (limited to 'libcxxabi/src')
-rw-r--r-- | libcxxabi/src/abort_message.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libcxxabi/src/abort_message.h b/libcxxabi/src/abort_message.h index 7cb11f4..83f956f 100644 --- a/libcxxabi/src/abort_message.h +++ b/libcxxabi/src/abort_message.h @@ -11,16 +11,7 @@ #include "cxxabi.h" -#ifdef __cplusplus -extern "C" { -#endif - -_LIBCXXABI_HIDDEN _LIBCXXABI_NORETURN void +extern "C" _LIBCXXABI_HIDDEN _LIBCXXABI_NORETURN void abort_message(const char *format, ...) __attribute__((format(printf, 1, 2))); -#ifdef __cplusplus -} #endif - -#endif - |