This is an archive of the discontinued LLVM Phabricator instance.

Support: Add operator== for MemoryBufferRef and split out MemoryBufferRef.h
ClosedPublic

Authored by dexonsmith on Oct 12 2020, 3:52 PM.

Details

Summary

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.

Diff Detail