[all-commits] [llvm/llvm-project] 3da0ae: [NFC] Use hasSection instead of getSection().empty()

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Fri Apr 23 10:01:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3da0aeea080f84ebc5e3059403f799469b93b773
      https://github.com/llvm/llvm-project/commit/3da0aeea080f84ebc5e3059403f799469b93b773
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M llvm/lib/CodeGen/MachineFunctionSplitter.cpp

  Log Message:
  -----------
  [NFC] Use hasSection instead of getSection().empty()

Use the optimized check hasSection() instead of calling
getSection().empty(). Originally suggested in D101004, but was dropped
in the commit.




More information about the All-commits mailing list