summaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSymbol.h
blob: 06f50aebedc93e0b50d1c45b32391fb790f5a81f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//===- 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 MCSymbol {
    MCSection *Section;
    std::string Name;
    unsigned IsTemporary : 1;

  public:
    MCSymbol(const char *_Name, bool _IsTemporary) 
      : Section(0), Name(_Name), IsTemporary(_IsTemporary) {}

    MCSection *getSection() const { return Section; }
    void setSection(MCSection *Value) { Section = Value; }

    const std::string &getName() const { return Name; }
  };

} // end namespace llvm

#endif
OpenPOWER on IntegriCloud