LLVM API Documentation

MCELF.h
Go to the documentation of this file.
00001 //===- lib/MC/MCELF.h - ELF MC --------------------------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file contains some support functions used by the ELF Streamer and
00011 // ObjectWriter.
00012 //
00013 //===----------------------------------------------------------------------===//
00014 
00015 #ifndef LLVM_MC_MCELF_H
00016 #define LLVM_MC_MCELF_H
00017 
00018 #include "llvm/MC/MCExpr.h"
00019 
00020 namespace llvm {
00021 class MCSymbolData;
00022 
00023 class MCELF {
00024  public:
00025   static void SetBinding(MCSymbolData &SD, unsigned Binding);
00026   static unsigned GetBinding(const MCSymbolData &SD);
00027   static void SetType(MCSymbolData &SD, unsigned Type);
00028   static unsigned GetType(const MCSymbolData &SD);
00029   static void SetVisibility(MCSymbolData &SD, unsigned Visibility);
00030   static unsigned GetVisibility(const MCSymbolData &SD);
00031   static void setOther(MCSymbolData &SD, unsigned Other);
00032   static unsigned getOther(const MCSymbolData &SD);
00033 };
00034 
00035 }
00036 
00037 #endif