[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>
Mon, 7 Nov 2022 15:14:43 +0000 (15:14 +0000)
commit80378a4ca725eeeae940b99220b3913f7b73c895
treedaaa52ce07a15d22682447e0b67a9f116e8ea96c
parent8ddd1ccdf89317be1c40fa9183e214878a56151e
[NFC] Move getDebugValueLoc from static in Local.cpp to DebugInfo.h

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