mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 13:33:37 +02:00
ad147e1d08
The flags field in MCSymbol only needs to be 16-bits on ELF and MachO. This moves the 16-bit Type out of there so that it can be reduced in size in a future commit. Reviewed by Rafael Espíndola. llvm-svn: 239313
37 lines
936 B
C++
37 lines
936 B
C++
//===- MCSymbolCOFF.h - ----------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef LLVM_MC_MCSYMBOLCOFF_H
|
|
#define LLVM_MC_MCSYMBOLCOFF_H
|
|
|
|
#include "llvm/MC/MCSymbol.h"
|
|
#include "llvm/Support/COFF.h"
|
|
|
|
namespace llvm {
|
|
class MCSymbolCOFF : public MCSymbol {
|
|
|
|
/// This corresponds to the e_type field of the COFF symbol.
|
|
mutable uint16_t Type;
|
|
|
|
public:
|
|
MCSymbolCOFF(const StringMapEntry<bool> *Name, bool isTemporary)
|
|
: MCSymbol(SymbolKindCOFF, Name, isTemporary), Type(0) {}
|
|
|
|
uint16_t getType() const {
|
|
return Type;
|
|
}
|
|
void setType(uint16_t Ty) const {
|
|
Type = Ty;
|
|
}
|
|
|
|
static bool classof(const MCSymbol *S) { return S->isCOFF(); }
|
|
};
|
|
}
|
|
|
|
#endif
|