Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. //===- lib/MC/MCELF.h - ELF MC --------------------------------------------===//
  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 some support functions used by the ELF Streamer and
  11. // ObjectWriter.
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #ifndef LLVM_MC_MCELF_H
  15. #define LLVM_MC_MCELF_H
  16. #include "llvm/MC/MCExpr.h"
  17. namespace llvm {
  18. class MCSymbolData;
  19. class MCELF {
  20. public:
  21. static void SetBinding(MCSymbolData &SD, unsigned Binding);
  22. static unsigned GetBinding(const MCSymbolData &SD);
  23. static void SetType(MCSymbolData &SD, unsigned Type);
  24. static unsigned GetType(const MCSymbolData &SD);
  25. static void SetVisibility(MCSymbolData &SD, unsigned Visibility);
  26. static unsigned GetVisibility(MCSymbolData &SD);
  27. static void setOther(MCSymbolData &SD, unsigned Other);
  28. static unsigned getOther(MCSymbolData &SD);
  29. };
  30. }
  31. #endif