aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-09-10 03:05:56 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-09-10 03:05:56 +0000
commit5ef21758665b9d6f0a481f712a19407dd41af706 (patch)
treec897177b80473c0a33500ec85e0ba8a39defd89e /llvm/lib/MC/MCObjectFileInfo.cpp
parentdf0ae22f92ea1c371640fa9d2b5d461e7b38207f (diff)
downloadllvm-5ef21758665b9d6f0a481f712a19407dd41af706.zip
llvm-5ef21758665b9d6f0a481f712a19407dd41af706.tar.gz
llvm-5ef21758665b9d6f0a481f712a19407dd41af706.tar.bz2
Make -Wunused warning rules more consistent.
This patch does a few different things. This patch improves unused var diags for const vars: we no longer unconditionally suppress diagnostics for const vars, instead only suppressing the diagnostic when the declaration appears to be useful. This patch also makes us more consistently use whether a variable/function is declared in the main file to suppress diagnostics where appropriate. Fixes <rdar://problem/14907887>. llvm-svn: 190382
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
0 files changed, 0 insertions, 0 deletions