This is an archive of the discontinued LLVM Phabricator instance.

[Frontend] Add a predefined macro that describes the Objective-C bool type
ClosedPublic

Authored by arphaman on Nov 2 2016, 3:06 AM.

Details

Summary

This patch adds a new predefined macro named __OBJC_BOOL_IS_BOOL that describes the Objective-C boolean type: its value is zero if the Objective-C boolean uses the signed character type, otherwise its value is one as the Objective-C boolean uses the builtin boolean type.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 76680.Nov 2 2016, 3:06 AM
arphaman retitled this revision from to [Frontend] Add a predefined macro that describes the Objective-C bool type.
arphaman updated this object.
arphaman added reviewers: bob.wilson, steven_wu.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: cfe-commits.
t.p.northover accepted this revision.Nov 18 2016, 11:41 AM
t.p.northover added a reviewer: t.p.northover.
t.p.northover added a subscriber: t.p.northover.

Looks reasonable to me.

Tim.

This revision is now accepted and ready to land.Nov 18 2016, 11:41 AM
This revision was automatically updated to reflect the committed changes.