Verify that jump tables are emitted to the same section as the function is,
authorChris Lattner <sabre@nondot.org>
Thu, 5 Oct 2006 03:12:36 +0000 (03:12 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Oct 2006 03:12:36 +0000 (03:12 +0000)
commit460b8bd15457469ecd62b581a275d2101648d0fb
treea3a9f96ddb0186699b65cf3b7b4259afdc7dc01b
parent1da31ee472b9615d7329c656e2cc17c419ed7c95
Verify that jump tables are emitted to the same section as the function is,
when codegen'ing in pic mode.  This fixes a miscompilation of a switch stmt
in a template, as the template goes to a non-.text section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30743 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/pic_jumptable.ll [new file with mode: 0644]