This is an archive of the discontinued LLVM Phabricator instance.

clang/Basic: Remove ContentCache::getRawBuffer, NFC
ClosedPublic

Authored by dexonsmith on Oct 14 2020, 8:37 PM.

Details

Summary

Replace ContentCache::getRawBuffer with getBufferDataIfLoaded and
getBufferIfLoaded, excising another accessor for the underlying
MemoryBuffer* in favour of StringRef and MemoryBufferRef.

Diff Detail

Event Timeline

dexonsmith created this revision.Oct 14 2020, 8:37 PM

Fix a compile error (I forgot to run check-clang-tools before).

JDevlieghere accepted this revision.Oct 21 2020, 10:50 PM
This revision is now accepted and ready to land.Oct 21 2020, 10:50 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2020, 11:01 AM