aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-11-17 02:06:35 +0000
committerHal Finkel <hfinkel@anl.gov>2013-11-17 02:06:35 +0000
commit66cd3f1ba3e099fa3b8b8e6a387d6f9c2bdb4289 (patch)
treed63ebfb395b43969df3545da0d4f7515cf2f73df /clang/lib/Frontend/CompilerInvocation.cpp
parent10d5be4e6e9ee220a787a6c9fd4e2cfdae8f9847 (diff)
downloadllvm-66cd3f1ba3e099fa3b8b8e6a387d6f9c2bdb4289.zip
llvm-66cd3f1ba3e099fa3b8b8e6a387d6f9c2bdb4289.tar.gz
llvm-66cd3f1ba3e099fa3b8b8e6a387d6f9c2bdb4289.tar.bz2
Add the cold attribute to error-reporting call sites
Generally speaking, control flow paths with error reporting calls are cold. So far, error reporting calls are calls to perror and calls to fprintf, fwrite, etc. with stderr as the stream. This can be extended in the future. The primary motivation is to improve block placement (the cold attribute affects the static branch prediction heuristics). llvm-svn: 194943
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions