mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-11 10:31:40 +00:00
25e0d8f755
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73994 91177308-0d34-0410-b5e6-96231b3b80d8
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
//===- MCContext.h - Machine Code Context -----------------------*- 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_MCCONTEXT_H
|
|
#define LLVM_MC_MCCONTEXT_H
|
|
|
|
namespace llvm {
|
|
class MCAtom;
|
|
class MCImm;
|
|
class MCSection;
|
|
class MCSymbol;
|
|
|
|
/// MCContext - Context object for machine code objects.
|
|
class MCContext {
|
|
MCContext(const MCContext&); // DO NOT IMPLEMENT
|
|
MCContext &operator=(const MCContext&); // DO NOT IMPLEMENT
|
|
|
|
public:
|
|
MCContext();
|
|
~MCContext();
|
|
|
|
MCSection *GetSection(const char *Name);
|
|
MCAtom *CreateAtom(MCSection *Section);
|
|
MCSymbol *CreateSymbol(MCAtom *Atom,
|
|
const char *Name,
|
|
bool IsTemporary);
|
|
MCSymbol *LookupSymbol(const char *Name) const;
|
|
|
|
void SetSymbolValue(MCSymbol *Sym, const MCImm &Value);
|
|
const MCImm &GetSymbolValue(MCSymbol *Sym) const;
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|