1 //===-- BPFMCAsmInfo.h - BPF asm properties -------------------*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the BPFMCAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
15 #define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/MC/MCAsmInfo.h"
19 #include "llvm/ADT/Triple.h"
25 class BPFMCAsmInfo : public MCAsmInfo {
27 explicit BPFMCAsmInfo(const Triple &TT) {
28 if (TT.getArch() == Triple::bpfeb)
29 IsLittleEndian = false;
31 PrivateGlobalPrefix = ".L";
32 WeakRefDirective = "\t.weak\t";
34 UsesELFSectionDirectiveForBSS = true;
35 HasSingleParameterDotFile = false;
36 HasDotTypeDotSizeDirective = false;