1 //===- MCSymbolCOFF.h - ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_MC_MCSYMBOLCOFF_H
10 #define LLVM_MC_MCSYMBOLCOFF_H
12 #include "llvm/MC/MCSymbol.h"
13 #include "llvm/Support/COFF.h"
16 class MCSymbolCOFF : public MCSymbol {
18 /// This corresponds to the e_type field of the COFF symbol.
19 mutable uint16_t Type;
22 MCSymbolCOFF(const StringMapEntry<bool> *Name, bool isTemporary)
23 : MCSymbol(SymbolKindCOFF, Name, isTemporary), Type(0) {}
25 uint16_t getType() const {
28 void setType(uint16_t Ty) const {
32 static bool classof(const MCSymbol *S) { return S->isCOFF(); }