]> granicus.if.org Git - clang/commit
Modify the pragma handlers to accept and use StringRefs instead of IdentifierInfos.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Jul 2010 09:07:17 +0000 (09:07 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Jul 2010 09:07:17 +0000 (09:07 +0000)
commit9b36c3f0de0105e903130bbda3c4aea7d792c0af
tree66f0c582d3ebf63b52b90596156e3ddf75814a4f
parentde80ec1fa947855d2e53722a8cd71367ff513481
Modify 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108237 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Pragma.h
include/clang/Lex/Preprocessor.h
lib/Frontend/FrontendActions.cpp
lib/Frontend/PrintPreprocessedOutput.cpp
lib/Lex/Pragma.cpp
lib/Lex/Preprocessor.cpp
lib/Parse/ParsePragma.h
lib/Parse/Parser.cpp