mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
Transforms: Use the new DebugLoc API, NFC
Update lib/Analysis and lib/Transforms to use the new `DebugLoc` API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -504,8 +504,7 @@ static std::string getDebugLocString(const Loop *L) {
|
||||
std::string Result;
|
||||
if (L) {
|
||||
raw_string_ostream OS(Result);
|
||||
const DebugLoc LoopDbgLoc = L->getStartLoc();
|
||||
if (!LoopDbgLoc.isUnknown())
|
||||
if (const DebugLoc LoopDbgLoc = L->getStartLoc())
|
||||
LoopDbgLoc.print(OS);
|
||||
else
|
||||
// Just print the module name.
|
||||
|
Reference in New Issue
Block a user