]> granicus.if.org Git - llvm/commit
[SimplifyCFG] Update the name of switch generated lookup table.
authorSumanth Gundapaneni <sgundapa@codeaurora.org>
Fri, 30 Jun 2017 20:00:01 +0000 (20:00 +0000)
committerSumanth Gundapaneni <sgundapa@codeaurora.org>
Fri, 30 Jun 2017 20:00:01 +0000 (20:00 +0000)
commitecea903af0b24c02131785a74a50e2e82ce7c073
treeb77571032256d253ba299a0e2ed9bbd3513789df
parenta6974a4e4466d55801a1f3e31e2088469d3e7aeb
[SimplifyCFG] Update the name of switch generated lookup table.

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.

Differential Revision: https://reviews.llvm.org/D34817

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll
test/Transforms/SimplifyCFG/X86/switch-table-bug.ll
test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll