| 1 | //===------------------ BPFTargetLoweringObjectFile.cpp -------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "BPFTargetLoweringObjectFile.h" |
| 10 | #include "llvm/MC/MCContext.h" |
| 11 | #include "llvm/MC/MCSectionELF.h" |
| 12 | |
| 13 | using namespace llvm; |
| 14 | |
| 15 | MCSection *BPFTargetLoweringObjectFileELF::getSectionForJumpTable( |
| 16 | const Function &F, const TargetMachine &TM, |
| 17 | const MachineJumpTableEntry *JTE) const { |
| 18 | return getContext().getELFSection(Section: ".jumptables", Type: ELF::SHT_PROGBITS, Flags: 0); |
| 19 | } |
| 20 |