MCSymbol.h revision 71d259bc4be4f5c7a8a30c6be8da105074ff805a
1//===- MCSymbol.h - Machine Code Symbols ------------------------*- C++ -*-===// 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#ifndef LLVM_MC_MCSYMBOL_H 11#define LLVM_MC_MCSYMBOL_H 12 13#include <string> 14 15namespace llvm { 16 class MCSymbol { 17 MCSection *Section; 18 std::string Name; 19 unsigned IsTemporary : 1; 20 21 public: 22 MCSymbol(const char *_Name, bool _IsTemporary) 23 : Section(0), Name(_Name), IsTemporary(_IsTemporary) {} 24 25 MCSection *getSection() const { return Section; } 26 void setSection(MCSection *Value) { Section = Value; } 27 28 const std::string &getName() const { return Name; } 29 }; 30 31} // end namespace llvm 32 33#endif 34