This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Use DbgVariableIntrinsic as the base class of variables.
ClosedPublic

Authored by HsiangKai on Aug 2 2018, 11:18 PM.

Details

Summary

After refactoring DbgInfoIntrinsic class hierarchy, we use
DbgVariableIntrinsic as the base class of variable debug info.

In resolveTopLevelMetadata() in CGVTables.cpp, we only care about
dbg.value, so we try to cast the instructions to DbgVariableIntrinsic
before resolving variables.

Diff Detail

Repository
rC Clang

Event Timeline

HsiangKai created this revision.Aug 2 2018, 11:18 PM
aprantl accepted this revision.Aug 3 2018, 8:21 AM
This revision is now accepted and ready to land.Aug 3 2018, 8:21 AM
This revision was automatically updated to reflect the committed changes.