diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-12 18:41:15 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-13 16:42:24 -0400 |
commit | f0875971249b59b5a4c07cedc9633f0359cf6b73 (patch) | |
tree | ab9af0a300cf729a451d3f9a4baddcbf8b1412b8 /llvm/lib/Support/LineIterator.cpp | |
parent | 97e48aadbd79184d1b3207c4f846c83e155be8dd (diff) | |
download | llvm-f0875971249b59b5a4c07cedc9633f0359cf6b73.zip llvm-f0875971249b59b5a4c07cedc9633f0359cf6b73.tar.gz llvm-f0875971249b59b5a4c07cedc9633f0359cf6b73.tar.bz2 |
Support: Add operator== for MemoryBufferRef and split out MemoryBufferRef.h
As preparation for changing `LineIterator` to work with `MemoryBufferRef`:
- Add an `operator==` that uses buffer pointer identity to ensure two buffers
are equivalent.
- Split out `MemoryBufferRef.h`, to avoid polluting `LineIterator.h` includers
with everything from `MemoryBuffer.h`. This also means moving the
`MemoryBuffer` constructor to a source file.
Differential Revision: https://reviews.llvm.org/D89279
Diffstat (limited to 'llvm/lib/Support/LineIterator.cpp')
0 files changed, 0 insertions, 0 deletions