1 //===- MCContext.h - Machine Code Context -----------------------*- 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_MCCONTEXT_H
11 #define LLVM_MC_MCCONTEXT_H
19 /// MCContext - Context object for machine code objects.
21 MCContext(const MCContext&); // DO NOT IMPLEMENT
22 MCContext &operator=(const MCContext&); // DO NOT IMPLEMENT
28 MCSection *GetSection(const char *Name);
29 MCAtom *CreateAtom(MCSection *Section);
30 MCSymbol *CreateSymbol(MCAtom *Atom,
33 MCSymbol *LookupSymbol(const char *Name) const;
35 void SetSymbolValue(MCSymbol *Sym, const MCImm &Value);
36 const MCImm &GetSymbolValue(MCSymbol *Sym) const;
39 } // end namespace llvm