Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h
Line
Count
Source (jump to first uncovered line)
1
//===-- NVPTXTargetObjectFile.h - NVPTX 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
#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXTARGETOBJECTFILE_H
10
#define LLVM_LIB_TARGET_NVPTX_NVPTXTARGETOBJECTFILE_H
11
12
#include "llvm/MC/MCSection.h"
13
#include "llvm/MC/SectionKind.h"
14
#include "llvm/Target/TargetLoweringObjectFile.h"
15
16
namespace llvm {
17
18
class NVPTXTargetObjectFile : public TargetLoweringObjectFile {
19
public:
20
455
  NVPTXTargetObjectFile() : TargetLoweringObjectFile() {}
21
22
  ~NVPTXTargetObjectFile() override;
23
24
255
  void Initialize(MCContext &ctx, const TargetMachine &TM) override {
25
255
    TargetLoweringObjectFile::Initialize(ctx, TM);
26
255
  }
27
28
  MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
29
                                   const Constant *C,
30
0
                                   unsigned &Align) const override {
31
0
    return ReadOnlySection;
32
0
  }
33
34
  MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
35
0
                                      const TargetMachine &TM) const override {
36
0
    return DataSection;
37
0
  }
38
39
  MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
40
                                    const TargetMachine &TM) const override;
41
};
42
43
} // end namespace llvm
44
45
#endif // LLVM_LIB_TARGET_NVPTX_NVPTXTARGETOBJECTFILE_H