[PATCH] D100632: [DebugInfo] Move the findDbg* functions into DebugInfo.cpp

Orlando Cazalet-Hyams via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 16 02:53:46 PDT 2021


Orlando created this revision.
Orlando added reviewers: aprantl, dblaikie, jmorse, djtodoro.
Orlando added projects: debug-info, LLVM.
Herald added subscribers: dexonsmith, hiraditya.
Orlando requested review of this revision.
Herald added a subscriber: llvm-commits.

Move the findDbg* functions into lib/IR/DebugInfo.cpp from
lib/Transforms/Utils/Local.cpp.

D99169 <https://reviews.llvm.org/D99169> adds a call to a function (findDbgUsers) that lives in
lib/Transforms/Utils/Local.cpp (LLVMTransformUtils) from lib/IR/Value.cpp
(LLVMCore). The Core lib doesn't include TransformUtils. The builtbots caught
this here: https://lab.llvm.org/buildbot/#/builders/109/builds/12664. This patch
moves the function, and the 3 similar ones for consistency, into DebugInfo.cpp
which is part of LLVMCore.


https://reviews.llvm.org/D100632

Files:
  llvm/include/llvm/IR/DebugInfo.h
  llvm/include/llvm/Transforms/Utils/Local.h
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/lib/IR/DebugInfo.cpp
  llvm/lib/Transforms/Utils/AutoInitRemark.cpp
  llvm/lib/Transforms/Utils/LCSSA.cpp
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/lib/Transforms/Utils/LoopRotationUtils.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100632.338039.patch
Type: text/x-patch
Size: 13117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210416/228ec6d1/attachment.bin>


More information about the llvm-commits mailing list