llvm.org GIT mirror llvm / 82d222f
Convert C comments to C++ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8172 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
2 changed file(s) with 42 addition(s) and 42 deletion(s). Raw diff Collapse all Expand all
1212 #include
1313
1414 struct llvm_cxx_exception {
15 /* TypeInfo - A pointer to the C++ std::type_info object for this exception
16 * class. This is required because the class may not be polymorphic.
17 */
15 // TypeInfo - A pointer to the C++ std::type_info object for this exception
16 // class. This is required because the class may not be polymorphic.
17 //
1818 const std::type_info *TypeInfo;
1919
20 /* ExceptionObjectDestructor - A pointer to the function which destroys the
21 * object represented by this exception. This is required because the class
22 * may not be polymorphic. This may be null if there is no cleanup required.
23 */
20 // ExceptionObjectDestructor - A pointer to the function which destroys the
21 // object represented by this exception. This is required because the class
22 // may not be polymorphic. This may be null if there is no cleanup required.
23 //
2424 void (*ExceptionObjectDestructor)(void *);
2525
26 /* UnexpectedHandler - This contains a pointer to the "unexpected" handler
27 * which may be registered by the user program with set_unexpected. Calls to
28 * unexpected which are a result of an exception throw are supposed to use the
29 * value of the handler at the time of the throw, not the currently set value.
30 */
26 // UnexpectedHandler - This contains a pointer to the "unexpected" handler
27 // which may be registered by the user program with set_unexpected. Calls to
28 // unexpected which are a result of an exception throw are supposed to use the
29 // value of the handler at the time of the throw, not the currently set value.
30 //
3131 void (*UnexpectedHandler)();
3232
33 /* TerminateHandler - This contains a pointer to the "terminate" handler which
34 * may be registered by the user program with set_terminate. Calls to
35 * unexpected which are a result of an exception throw are supposed to use the
36 * value of the handler at the time of the throw, not the currently set value.
37 */
33 // TerminateHandler - This contains a pointer to the "terminate" handler which
34 // may be registered by the user program with set_terminate. Calls to
35 // unexpected which are a result of an exception throw are supposed to use the
36 // value of the handler at the time of the throw, not the currently set value.
37 //
3838 void (*TerminateHandler)();
3939
40 /* BaseException - The language independent portion of the exception state.
41 * This is at the end of the record so that we can add additional members to
42 * this structure without breaking binary compatibility.
43 */
40 // BaseException - The language independent portion of the exception state.
41 // This is at the end of the record so that we can add additional members to
42 // this structure without breaking binary compatibility.
43 //
4444 llvm_exception BaseException;
4545 };
4646
1212 #include
1313
1414 struct llvm_cxx_exception {
15 /* TypeInfo - A pointer to the C++ std::type_info object for this exception
16 * class. This is required because the class may not be polymorphic.
17 */
15 // TypeInfo - A pointer to the C++ std::type_info object for this exception
16 // class. This is required because the class may not be polymorphic.
17 //
1818 const std::type_info *TypeInfo;
1919
20 /* ExceptionObjectDestructor - A pointer to the function which destroys the
21 * object represented by this exception. This is required because the class
22 * may not be polymorphic. This may be null if there is no cleanup required.
23 */
20 // ExceptionObjectDestructor - A pointer to the function which destroys the
21 // object represented by this exception. This is required because the class
22 // may not be polymorphic. This may be null if there is no cleanup required.
23 //
2424 void (*ExceptionObjectDestructor)(void *);
2525
26 /* UnexpectedHandler - This contains a pointer to the "unexpected" handler
27 * which may be registered by the user program with set_unexpected. Calls to
28 * unexpected which are a result of an exception throw are supposed to use the
29 * value of the handler at the time of the throw, not the currently set value.
30 */
26 // UnexpectedHandler - This contains a pointer to the "unexpected" handler
27 // which may be registered by the user program with set_unexpected. Calls to
28 // unexpected which are a result of an exception throw are supposed to use the
29 // value of the handler at the time of the throw, not the currently set value.
30 //
3131 void (*UnexpectedHandler)();
3232
33 /* TerminateHandler - This contains a pointer to the "terminate" handler which
34 * may be registered by the user program with set_terminate. Calls to
35 * unexpected which are a result of an exception throw are supposed to use the
36 * value of the handler at the time of the throw, not the currently set value.
37 */
33 // TerminateHandler - This contains a pointer to the "terminate" handler which
34 // may be registered by the user program with set_terminate. Calls to
35 // unexpected which are a result of an exception throw are supposed to use the
36 // value of the handler at the time of the throw, not the currently set value.
37 //
3838 void (*TerminateHandler)();
3939
40 /* BaseException - The language independent portion of the exception state.
41 * This is at the end of the record so that we can add additional members to
42 * this structure without breaking binary compatibility.
43 */
40 // BaseException - The language independent portion of the exception state.
41 // This is at the end of the record so that we can add additional members to
42 // this structure without breaking binary compatibility.
43 //
4444 llvm_exception BaseException;
4545 };
4646