]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUTargetObjectFile.h
Fix a memory leak in if_delgroups() introduced in r334118.
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / lib / Target / AMDGPU / AMDGPUTargetObjectFile.h
1 //===-- AMDGPUTargetObjectFile.h - AMDGPU  Object Info ----*- C++ -*-===//
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 /// \file
10 /// This file declares the AMDGPU-specific subclass of
11 /// TargetLoweringObjectFile.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETOBJECTFILE_H
16 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETOBJECTFILE_H
17
18 #include "AMDGPU.h"
19 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
20 #include "llvm/Target/TargetMachine.h"
21
22 namespace llvm {
23
24 class AMDGPUTargetObjectFile : public TargetLoweringObjectFileELF {
25   public:
26     MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
27                                       const TargetMachine &TM) const override;
28     MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
29                                         const TargetMachine &TM) const override;
30 };
31
32 } // end namespace llvm
33
34 #endif