1 //===- MCAsmLayout.h - Assembly Layout Object -------------------*- 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_MCASMLAYOUT_H
11 #define LLVM_MC_MCASMLAYOUT_H
16 /// Encapsulates the layout of an assembly file at a particular point in time.
18 /// Assembly may requiring compute multiple layouts for a particular assembly
19 /// file as part of the relaxation process. This class encapsulates the layout
20 /// at a single point in time in such a way that it is always possible to
21 /// efficiently compute the exact addresses of any symbol in the assembly file,
22 /// even during the relaxation process.
25 MCAssembler &Assembler;
28 MCAsmLayout(MCAssembler &_Assembler) : Assembler(_Assembler) {}
30 /// Get the assembler object this is a layout for.
31 MCAssembler &getAssembler() const { return Assembler; }
34 } // end namespace llvm