[cfe-commits] [PATCH] Disassociate pragmas from IdentifierInfos

Argyrios Kyrtzidis kyrtzidis at apple.com
Tue Jul 13 00:57:25 PDT 2010

The attached patch modifies the pragma handlers to accept and use StringRefs instead of IdentifierInfos.

When loading the PCH, IdentifierInfos that are associated with pragmas cause declarations that use these identifiers to be deserialized (e.g. the "clang" pragma causes the "clang" namespace to be loaded).
We can avoid this if we just use StringRefs for the pragmas.

As a bonus, since we don't have to create and pass IdentifierInfos, the pragma interfaces get a bit more simplified.

Please review!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pragmas-stringref.diff
Type: application/octet-stream
Size: 25086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100713/1115a976/attachment.obj>

More information about the cfe-commits mailing list