This is an archive of the discontinued LLVM Phabricator instance.

[Sema] require -fcf-runtime-abi= for __NSConstantString
Needs ReviewPublic

Authored by nickdesaulniers on May 6 2020, 4:01 PM.

Details

Reviewers
compnerd
Summary

commit 81a650ee87eb ("Driver,CodeGen: introduce support for Swift CFString layout")
r345222

added support for implicit typedefs for __NSConstantString, used for
the runtime ABI for CoreFoundation, which can be set via -fcf-runtime-abi=.

This implicit typdef pollutes the global namespace for code that's not
targeting CoreFoundation platforms. As such, require -fcf-runtime-abi=
to be used, and disallow the creation of the typedef for C code that
does not specify.

This is most visable dumping ASTs when debugging.

Diff Detail

Event Timeline

nickdesaulniers created this revision.May 6 2020, 4:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2020, 4:01 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

clang::Codegen::DeferredDecls might be of interest here.