diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 19:50:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 19:50:11 +0000 |
commit | 5244f34e75dfe5e73fb43a332cb030b29fc1dd0c (patch) | |
tree | 9954ba6d14f7e79328456bcc1cf21c4e54bae0d5 /llvm/lib/Support/CommandLine.cpp | |
parent | d3fb18fba2d8295d4c7fc41b2bda761d78262dba (diff) | |
download | llvm-5244f34e75dfe5e73fb43a332cb030b29fc1dd0c.zip llvm-5244f34e75dfe5e73fb43a332cb030b29fc1dd0c.tar.gz llvm-5244f34e75dfe5e73fb43a332cb030b29fc1dd0c.tar.bz2 |
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
llvm-svn: 62347
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions