1 //===- MCSymbol.h - Machine Code Symbols ------------------------*- 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 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_MC_MCSYMBOL_H
11 #define LLVM_MC_MCSYMBOL_H
21 unsigned IsTemporary : 1;
22 unsigned IsExternal : 1;
25 MCSymbol(const char *_Name, bool _IsTemporary)
26 : Section(0), Name(_Name), IsTemporary(_IsTemporary), IsExternal(false) {}
28 MCSection *getSection() const { return Section; }
29 void setSection(MCSection *Value) { Section = Value; }
31 bool isExternal() const { return IsExternal; }
32 void setExternal(bool Value) { IsExternal = Value; }
34 const std::string &getName() const { return Name; }
37 } // end namespace llvm