20 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "BPFTargetLoweringObjectFile.h"10#include "llvm/MC/MCContext.h"11#include "llvm/MC/MCSectionELF.h"12 13using namespace llvm;14 15MCSection *BPFTargetLoweringObjectFileELF::getSectionForJumpTable(16 const Function &F, const TargetMachine &TM,17 const MachineJumpTableEntry *JTE) const {18 return getContext().getELFSection(".jumptables", ELF::SHT_PROGBITS, 0);19}20