mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
77afbdce53
excluding visibility bits. Generic STO handling at the Target level. The st_other field of the ELF symbol table is one byte in size. The first 2 bytes are used for generic visibility and are currently handled by llvm. The other six bits are processor specific and need to be set at the target level. A couple of notes: The new static methods for accessing and setting the "other" flags in include/llvm/MC/MCELF.h match the style guide and not the other methods in the file. I don't like the inconsistency, but feel I should follow the prescribed lowerUpper() convention. STO_ value definitions are not specified in gnu land as consistently as the STT_ and STB_ fields. Probably because the latter were defined in a standards doc and the former defined partially in code. I have stuck with the full byte definition of the flags. Contributer: Zoran Jovanovic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175561 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
//===- lib/MC/MCELF.h - ELF MC --------------------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains some support functions used by the ELF Streamer and
|
|
// ObjectWriter.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_MC_MCELF_H
|
|
#define LLVM_MC_MCELF_H
|
|
|
|
#include "llvm/MC/MCExpr.h"
|
|
|
|
namespace llvm {
|
|
class MCSymbolData;
|
|
|
|
class MCELF {
|
|
public:
|
|
static void SetBinding(MCSymbolData &SD, unsigned Binding);
|
|
static unsigned GetBinding(const MCSymbolData &SD);
|
|
static void SetType(MCSymbolData &SD, unsigned Type);
|
|
static unsigned GetType(const MCSymbolData &SD);
|
|
static void SetVisibility(MCSymbolData &SD, unsigned Visibility);
|
|
static unsigned GetVisibility(MCSymbolData &SD);
|
|
static void setOther(MCSymbolData &SD, unsigned Other);
|
|
static unsigned getOther(MCSymbolData &SD);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|