summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h
diff options
context:
space:
mode:
authorSumanth Gundapaneni <sgundapa@codeaurora.org>2017-06-30 20:21:48 +0000
committerSumanth Gundapaneni <sgundapa@codeaurora.org>2017-06-30 20:21:48 +0000
commit8c5d59557d2ed097df783e69682b3a9a31a92493 (patch)
treeab627cf1da9bd147311a178b22e8c357a9852b6f /llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h
parent19b74203b1bbe7e394d36a7713a84991abf6cc30 (diff)
downloadbcm5719-llvm-8c5d59557d2ed097df783e69682b3a9a31a92493.tar.gz
bcm5719-llvm-8c5d59557d2ed097df783e69682b3a9a31a92493.zip
[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 llvm-svn: 306872
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h
index 58dff2b95e1..373d850b53b 100644
--- a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h
+++ b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.h
@@ -33,6 +33,9 @@ namespace llvm {
unsigned getSmallDataSize() const;
+ bool shouldPutJumpTableInFunctionSection(bool UsesLabelDifference,
+ const Function &F) const override;
+
private:
MCSectionELF *SmallDataSection;
MCSectionELF *SmallBSSSection;
OpenPOWER on IntegriCloud