comparison lib/Target/NVPTX/NVPTXSection.h @ 77:54457678186b LLVM3.6

LLVM 3.6
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Mon, 08 Sep 2014 22:06:00 +0900
parents 95c75e76d11b
children afa8332a0e37
comparison
equal deleted inserted replaced
34:e874dbf0ad9d 77:54457678186b
9 // 9 //
10 // This file declares the NVPTXSection class. 10 // This file declares the NVPTXSection class.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef LLVM_NVPTXSECTION_H 14 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXSECTION_H
15 #define LLVM_NVPTXSECTION_H 15 #define LLVM_LIB_TARGET_NVPTX_NVPTXSECTION_H
16 16
17 #include "llvm/IR/GlobalVariable.h" 17 #include "llvm/IR/GlobalVariable.h"
18 #include "llvm/MC/MCSection.h" 18 #include "llvm/MC/MCSection.h"
19 #include <vector> 19 #include <vector>
20 20
29 NVPTXSection(SectionVariant V, SectionKind K) : MCSection(V, K) {} 29 NVPTXSection(SectionVariant V, SectionKind K) : MCSection(V, K) {}
30 virtual ~NVPTXSection() {} 30 virtual ~NVPTXSection() {}
31 31
32 /// Override this as NVPTX has its own way of printing switching 32 /// Override this as NVPTX has its own way of printing switching
33 /// to a section. 33 /// to a section.
34 virtual void PrintSwitchToSection(const MCAsmInfo &MAI, 34 void PrintSwitchToSection(const MCAsmInfo &MAI,
35 raw_ostream &OS, 35 raw_ostream &OS,
36 const MCExpr *Subsection) const {} 36 const MCExpr *Subsection) const override {}
37 37
38 /// Base address of PTX sections is zero. 38 /// Base address of PTX sections is zero.
39 virtual bool isBaseAddressKnownZero() const { return true; } 39 bool isBaseAddressKnownZero() const override { return true; }
40 virtual bool UseCodeAlign() const { return false; } 40 bool UseCodeAlign() const override { return false; }
41 virtual bool isVirtualSection() const { return false; } 41 bool isVirtualSection() const override { return false; }
42 virtual std::string getLabelBeginName() const { return ""; } 42 std::string getLabelBeginName() const override { return ""; }
43 virtual std::string getLabelEndName() const { return ""; } 43 std::string getLabelEndName() const override { return ""; }
44 }; 44 };
45 45
46 } // end namespace llvm 46 } // end namespace llvm
47 47
48 #endif 48 #endif