OSDN Git Service

[Hexagon] Emit jump tables in text section based on a flag
authorSumanth Gundapaneni <sgundapa@codeaurora.org>
Fri, 30 Jun 2017 20:21:48 +0000 (20:21 +0000)
committerSumanth Gundapaneni <sgundapa@codeaurora.org>
Fri, 30 Jun 2017 20:21:48 +0000 (20:21 +0000)
commit7005a5a0471a6e99204d0f7639ea297cacc94a9f
treebc1a7b5d7396357355ed193342ab4cb09f1796c4
parent409c609253ed7dd900f7ccb873eb5261b099c04a
[Hexagon] Emit jump tables in text section based on a flag

This patch adds a new LLVM flag -hexagon-emit-jt-text which is defaulted to
"false". The value "true" emits the switch generated jump tables in text section.
Differential Revision: https://reviews.llvm.org/D34820

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
lib/Target/Hexagon/HexagonTargetObjectFile.h
test/CodeGen/Hexagon/jt-in-text.ll [new file with mode: 0644]