[all-commits] [llvm/llvm-project] 63af24: clang/Frontend: Mostly stop using SourceManager::g...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Wed Oct 14 20:32:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 63af2422798188d70a411f76b0f06ab63a783a0d
      https://github.com/llvm/llvm-project/commit/63af2422798188d70a411f76b0f06ab63a783a0d
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Frontend/FrontendActions.cpp
    M clang/lib/Frontend/Rewrite/HTMLPrint.cpp
    M clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
    M clang/lib/Frontend/Rewrite/RewriteObjC.cpp

  Log Message:
  -----------
  clang/Frontend: Mostly stop using SourceManager::getBuffer, NFC

Update clang/lib/Frontend to use a `MemoryBufferRef` from
`getBufferOrFake` instead of `MemoryBuffer*` from `getBuffer`, with the
exception of `FrontendInputFile`, which I'm leaving for later.

Differential Revision: https://reviews.llvm.org/D89409




More information about the All-commits mailing list