]> granicus.if.org Git - clang/commit
As a performance optimization, don't bother calling MacroInfo::isIdenticalTo
authorChris Lattner <sabre@nondot.org>
Fri, 16 Jan 2009 19:50:11 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Jan 2009 19:50:11 +0000 (19:50 +0000)
commit41c3ae108a54437f27fa99ddcb9bafcf113bde80
treeaaade9432553ef0e18915f3f9de0d59282ad5f53
parent95d58f3ad73881c39cd63780b6af01a1045bd4b3
As a performance optimization, don't bother calling MacroInfo::isIdenticalTo
if warnings in system headers are disabled.  isIdenticalTo can end up
calling the expensive getSpelling method, and other bad stuff and is
completely unneeded if the warning will be discarded anyway. rdar://6502956

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62347 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPDirectives.cpp