Update clang/lib/CodeGen to use a MemoryBufferRef from getBufferOrNone instead of MemoryBuffer* from getBuffer. No functionality change here.
Details
Details
Summary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
dexonsmith retitled this revision from clang/CodeGen: Mostly stop using SourceManager::getBuffer, NFC to clang/CodeGen: Stop using SourceManager::getBuffer, NFC.Oct 14 2020, 10:55 AM
dexonsmith added a parent revision: D89348: clang/Basic: Replace ContentCache::getBuffer with Optional semantics.
dexonsmith added a child revision: D66782: SourceManager: Prefer Optional<MemoryBufferRef> over MemoryBuffer*.
dexonsmith added a child revision: D89427: clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer).Oct 14 2020, 2:30 PM
dexonsmith removed a child revision: D66782: SourceManager: Prefer Optional<MemoryBufferRef> over MemoryBuffer*.
This revision is now accepted and ready to land.Oct 14 2020, 6:37 PM
Closed by commit rGdde4e0318c4c: clang/CodeGen: Stop using SourceManager::getBuffer, NFC (authored by dexonsmith). · Explain WhyOct 14 2020, 8:58 PM
This revision was automatically updated to reflect the committed changes.