diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-16 21:03:55 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-16 21:03:55 +0000 |
commit | e9d379c038dbe57860290ee068cb18d13604b309 (patch) | |
tree | 0ce660a23ecc563e79bf780da8558ba22a20607c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | e687bf83c0f9e6b75137a97edbb9967780e55562 (diff) | |
download | bcm5719-llvm-e9d379c038dbe57860290ee068cb18d13604b309.tar.gz bcm5719-llvm-e9d379c038dbe57860290ee068cb18d13604b309.zip |
IR: Take advantage of -verify checks for MDExpression
Now that we check `MDExpression` during `-verify` (r232299), make
the `DIExpression` wrapper more strict:
- remove redundant checks in `DebugInfoVerifier`,
- overload `get()` to `cast_or_null<MDExpression>` (superseding
`getRaw()`),
- stop checking for null in any accessor, and
- remove `DIExpression::Verify()` entirely in favour of
`MDExpression::isValid()`.
There is still some logic in this class, mostly to do with high-level
iterators; I'll defer cleaning up those until the rest of the wrappers
are similarly strict.
llvm-svn: 232412
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions