This is an archive of the discontinued LLVM Phabricator instance.

Migrate deprecated DebugLoc::get to DILocation::get
ClosedPublic

Authored by MaskRay on Dec 10 2020, 10:36 PM.

Details

Summary

This migrates all LLVM (except Kaleidoscope and
CodeGen/StackProtector.cpp) DebugLoc::get to DILocation::get.

The CodeGen/StackProtector.cpp usage may have a nullptr Scope
and can trigger an assertion failure, so I don't migrate it.

Diff Detail

Event Timeline

MaskRay created this revision.Dec 10 2020, 10:36 PM
MaskRay requested review of this revision.Dec 10 2020, 10:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2020, 10:36 PM
dblaikie accepted this revision.Dec 11 2020, 12:06 PM

Looks good, thanks!

This revision is now accepted and ready to land.Dec 11 2020, 12:06 PM
This revision was landed with ongoing or failed builds.Dec 11 2020, 12:45 PM
This revision was automatically updated to reflect the committed changes.

Thanks for this!