LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MCELFSymbolFlags.h
Go to the documentation of this file.
1 //===- MCELFSymbolFlags.h - ELF Symbol Flags ----------------*- 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 declares the SymbolFlags used for the ELF target.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_MC_MCELFSYMBOLFLAGS_H
15 #define LLVM_MC_MCELFSYMBOLFLAGS_H
16 
17 #include "llvm/Support/ELF.h"
18 
19 // Because all the symbol flags need to be stored in the MCSymbolData
20 // 'flags' variable we need to provide shift constants per flag type.
21 
22 namespace llvm {
23  enum {
24  ELF_STT_Shift = 0, // Shift value for STT_* flags.
25  ELF_STB_Shift = 4, // Shift value for STB_* flags.
26  ELF_STV_Shift = 8, // Shift value for STV_* flags.
27  ELF_Other_Shift = 10 // Shift value for other flags.
28  };
29 
36 
46 
51 
54  };
55 
56 } // end namespace llvm
57 
58 #endif