Put each jump table in an independent section if the function is too.
[oota-llvm.git] / lib / Target / TargetLoweringObjectFile.cpp
index 25b898c1aee19e91d6f737502a322634fd02d189..c098035a5aa4b4edf0eec9f99f0ef1e9779bf650 100644 (file)
@@ -270,6 +270,11 @@ SectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang,
   return SelectSectionForGlobal(GV, Kind, Mang, TM);
 }
 
+const MCSection *TargetLoweringObjectFile::getSectionForJumpTable(
+    const Function &F, Mangler &Mang, const TargetMachine &TM) const {
+  return getSectionForConstant(SectionKind::getReadOnly(), /*C=*/nullptr);
+}
+
 /// getSectionForConstant - Given a mergable constant with the
 /// specified size and relocation information, return a section that it
 /// should be placed in.