This is an archive of the discontinued LLVM Phabricator instance.

[Coroutines] Part15b: Fix dbg information handling in coro-split.
ClosedPublic

Authored by GorNishanov on Sep 9 2016, 11:58 AM.
Tokens
"Yellow Medal" token, awarded by GorNishanov.

Details

Summary

Without the fix, if there was a function inlined into the coroutine with debug information, CloneFunctionInto(NewF, &F, VMap, /*ModuleLevelChanges=*/true, Returns); would duplicate all of the debug information including the DICompileUnit.

We know use VMap to indicate that debug metadata for a File, Unit and FunctionType should not be duplicated when we creating clones that will become f.resume, f.destroy and f.cleanup.

Diff Detail

Repository
rL LLVM

Event Timeline

GorNishanov retitled this revision from to [Coroutines] Fix dbg information handling in coro-split..
GorNishanov updated this object.
GorNishanov added a reviewer: majnemer.
GorNishanov added a subscriber: llvm-commits.
GorNishanov retitled this revision from [Coroutines] Fix dbg information handling in coro-split. to [Coroutines] Part15b: Fix dbg information handling in coro-split..Sep 9 2016, 12:01 PM

Another tiny change. Another gentle ping

majnemer accepted this revision.Sep 30 2016, 10:44 AM
majnemer edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 30 2016, 10:44 AM
This revision was automatically updated to reflect the committed changes.