aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-21 22:19:25 +0000
committerZachary Turner <zturner@google.com>2016-11-21 22:19:25 +0000
commit3d58175532a914bd0cf973b20f2c3e8379030d52 (patch)
tree2c8cf45e768c0567717a7b8e603678a37a95414a /llvm/lib/Object/IRObjectFile.cpp
parent3b0bafee6320277cf9daafa93bf9a612ea882882 (diff)
downloadllvm-3d58175532a914bd0cf973b20f2c3e8379030d52.zip
llvm-3d58175532a914bd0cf973b20f2c3e8379030d52.tar.gz
llvm-3d58175532a914bd0cf973b20f2c3e8379030d52.tar.bz2
Remove LLVM_NODISCARD from StringRef.
This is a bit too aggressive of a warning, as it is forces ANY function which returns a StringRef to have its return value checked. While useful on classes like llvm::Error which are designed to require checking, this is not the case for StringRef, and it is perfectly reasonable to have a function return a StringRef for which the return value is not checked. Move LLVM_NODISCARD to each of the individual member functions where it makes sense instead. llvm-svn: 287586
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions