c22790e86aa63beb844abda8130a1909b55c63a5
[oota-llvm.git] / lib / Target / BPF / MCTargetDesc / BPFMCAsmInfo.h
1 //===-- BPFMCAsmInfo.h - BPF asm properties -------------------*- C++ -*--====//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the BPFMCAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
15 #define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
16
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/MC/MCAsmInfo.h"
19 #include "llvm/ADT/TargetTuple.h"
20
21 namespace llvm {
22 class Target;
23
24 class BPFMCAsmInfo : public MCAsmInfo {
25 public:
26   explicit BPFMCAsmInfo(const TargetTuple &TT) {
27     if (TT.getArch() == TargetTuple::bpfeb)
28       IsLittleEndian = false;
29
30     PrivateGlobalPrefix = ".L";
31     WeakRefDirective = "\t.weak\t";
32
33     UsesELFSectionDirectiveForBSS = true;
34     HasSingleParameterDotFile = false;
35     HasDotTypeDotSizeDirective = false;
36
37     SupportsDebugInformation = true;
38   }
39 };
40 }
41
42 #endif