This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Prepare DIBuilder for labels.
AbandonedPublic

Authored by HsiangKai on Mar 29 2018, 7:03 AM.

Details

Reviewers
rnk
chenwj
Summary

Implement createLabel() to allocate DILabel objects.
Implement insertLabel() to insert llvm.dbg.label intrinsic function in LLVM IR.

Clang could use DIBuilder::createLabel() to allocate DILabel, then pass the object
to DIBuilder::insertLabel() to insert llvm.dbg.label intrinsic function in LLVM IR.

Diff Detail

Repository
rL LLVM