Skip to content
Commit 301bc21f authored by Richard Smith's avatar Richard Smith
Browse files

Make Sema::getPrintingPolicy less ridiculously expensive. This used to perform

an identifier table lookup, *and* copy the LangOptions (including various
std::vector<std::string>s). Twice. We call this function once each time we start
parsing a declaration specifier sequence, and once for each call to Sema::Diag.

This reduces the compile time for a sample .c file from the linux kernel by 20%.

llvm-svn: 270009
parent f981ec45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment