[all-commits] [llvm/llvm-project] 00d097: Move variable declarations to functions in which t...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Fri Nov 13 14:03:52 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 00d0974e6290d5ee4ae1b4c654176863936f1469
      https://github.com/llvm/llvm-project/commit/00d0974e6290d5ee4ae1b4c654176863936f1469
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
    M llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h
    M llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
    M llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp

  Log Message:
  -----------
  Move variable declarations to functions in which they are used. NFC


  Commit: 2ed3a76745f9be48b75e12c71a9b349fde9f0108
      https://github.com/llvm/llvm-project/commit/2ed3a76745f9be48b75e12c71a9b349fde9f0108
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
    M llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h
    M llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
    M llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp

  Log Message:
  -----------
  [ObjC][ARC] Add and use a function which finds and returns the single
dependency. NFC

Use findSingleDependency in place of FindDependencies and stop passing a
set of Instructions around. Modify FindDependencies to return a boolean
flag which indicates whether the dependencies it has found are all
valid.


Compare: https://github.com/llvm/llvm-project/compare/d6a88e7e194d...2ed3a76745f9


More information about the All-commits mailing list