mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 10:54:42 +00:00
c3cac19cfe
llvm-svn: 74496
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
//===- MCSymbol.h - Machine Code Symbols ------------------------*- 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_MCSYMBOL_H
|
|
#define LLVM_MC_MCSYMBOL_H
|
|
|
|
#include <string>
|
|
|
|
namespace llvm {
|
|
class MCSection;
|
|
|
|
class MCSymbol {
|
|
MCSection *Section;
|
|
std::string Name;
|
|
unsigned IsTemporary : 1;
|
|
unsigned IsExternal : 1;
|
|
|
|
public:
|
|
MCSymbol(const char *_Name, bool _IsTemporary)
|
|
: Section(0), Name(_Name), IsTemporary(_IsTemporary), IsExternal(false) {}
|
|
|
|
MCSection *getSection() const { return Section; }
|
|
void setSection(MCSection *Value) { Section = Value; }
|
|
|
|
bool isExternal() const { return IsExternal; }
|
|
void setExternal(bool Value) { IsExternal = Value; }
|
|
|
|
const std::string &getName() const { return Name; }
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|