This is an archive of the discontinued LLVM Phabricator instance.

[SimplifyCFG] Update the name of switch generated lookup table.
ClosedPublic

Authored by sgundapa on Jun 29 2017, 9:55 AM.

Details

Summary

This patch appends the name of the function to the switch generated lookup
table. This will ease the visual debugging in identifying the function the table
is generated from.

Diff Detail

Repository
rL LLVM

Event Timeline

sgundapa created this revision.Jun 29 2017, 9:55 AM
sgundapa added a reviewer: tobiasvk.
hans edited edge metadata.Jun 29 2017, 10:29 AM

Thanks! This seems useful also for nicer test files.

lib/Transforms/Utils/SimplifyCFG.cpp
4836 ↗(On Diff #104669)

Could you change this to pass in a StringRef to the function name instead? That way the reader doesn't have to wonder what it needs the Function for.

sgundapa updated this revision to Diff 104687.Jun 29 2017, 10:47 AM

Changed the patch to pass StringRef

hans accepted this revision.Jun 29 2017, 10:50 AM

lgtm

This revision is now accepted and ready to land.Jun 29 2017, 10:50 AM
This revision was automatically updated to reflect the committed changes.