[DebugInfo] Move the findDbg* functions into DebugInfo.cpp
authorOCHyams <orlando.hyams@sony.com>
Mon, 19 Apr 2021 08:54:22 +0000 (09:54 +0100)
committerOCHyams <orlando.hyams@sony.com>
Mon, 19 Apr 2021 09:30:25 +0000 (10:30 +0100)
commit0ebf9a8e34b6aeee520aa5dc6916a155c5789533
tree88b886810737e6a1c9ff7b5e0a37d6833e1cb132
parentfb2aa63d7dc54800d8a08df198e261a95bcefdbe
[DebugInfo] Move the findDbg* functions into DebugInfo.cpp

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

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.

Reviewed By: dblaikie, rnk

Differential Revision: https://reviews.llvm.org/D100632
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