Reapply: [NFC] Move getDebugValueLoc from static in Local.cpp to DebugInfo.h
authorOCHyams <orlando.hyams@sony.com>
Mon, 7 Nov 2022 15:12:18 +0000 (15:12 +0000)
committerOCHyams <orlando.hyams@sony.com>
Tue, 8 Nov 2022 16:25:39 +0000 (16:25 +0000)
commitfd16ff3a7ef7c03932066ed992a672d7e8abd304
tree463413e169658e7dad97110bf818929a3b6f9dbb
parenta5c18fcf6e7ffeea72aaf079477caf2ac1d641bc
Reapply: [NFC] Move getDebugValueLoc from static in Local.cpp to DebugInfo.h

Reverted in b22d80dc6a6af6328d68f7b944627f9278ff6ffb.

Move getDebugValueLoc so that it can be accessed from DebugInfo.h for the
Assignment Tracking patch stack and remove redundant parameter Src.

Reviewed By: jryans

Differential Revision: https://reviews.llvm.org/D132357
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp
llvm/lib/Transforms/Utils/Local.cpp