Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Side by Side Diff: third_party/libc++abi/src/cxa_handlers.hpp

Issue 75213003: Add libc++ and libc++abi to third-party. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libc++abi/src/cxa_guard.cpp ('k') | third_party/libc++abi/src/cxa_handlers.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //===------------------------- cxa_handlers.cpp ---------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //
9 // This file implements the functionality associated with the terminate_handler,
10 // unexpected_handler, and new_handler.
11 //===----------------------------------------------------------------------===//
12
13 #ifndef _CXA_HANDLERS_H
14 #define _CXA_HANDLERS_H
15
16 #include <exception>
17
18 namespace std
19 {
20
21 __attribute__((visibility("hidden"), noreturn))
22 void
23 __unexpected(unexpected_handler func);
24
25 __attribute__((visibility("hidden"), noreturn))
26 void
27 __terminate(terminate_handler func) _NOEXCEPT;
28
29 } // std
30
31 extern "C"
32 {
33
34 extern void (*__cxa_terminate_handler)();
35 extern void (*__cxa_unexpected_handler)();
36 extern void (*__cxa_new_handler)();
37
38 /*
39
40 At some point in the future these three symbols will become
41 C++11 atomic variables:
42
43 extern std::atomic<std::terminate_handler> __cxa_terminate_handler;
44 extern std::atomic<std::unexpected_handler> __cxa_unexpected_handler;
45 extern std::atomic<std::new_handler> __cxa_new_handler;
46
47 This change will not impact their ABI. But it will allow for a
48 portable performance optimization.
49
50 */
51
52 } // extern "C"
53
54 #endif // _CXA_HANDLERS_H
OLDNEW
« no previous file with comments | « third_party/libc++abi/src/cxa_guard.cpp ('k') | third_party/libc++abi/src/cxa_handlers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698