aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-27 21:28:04 +0000
committerChris Lattner <sabre@nondot.org>2009-07-27 21:28:04 +0000
commit2b2954f00ba02ca1a902f47080cd9f06aebc0378 (patch)
tree5b030058053740588b319b8e8fe4b84abd8c1f90 /include
parentb5261ebabb215330d6549048b825d236fb3c9b6b (diff)
downloadexternal_llvm-2b2954f00ba02ca1a902f47080cd9f06aebc0378.zip
external_llvm-2b2954f00ba02ca1a902f47080cd9f06aebc0378.tar.gz
external_llvm-2b2954f00ba02ca1a902f47080cd9f06aebc0378.tar.bz2
hoist MCContext/MCStreamer up to AsmPrinter since we're going to start creating
MCSections soon instead of Section for all targets, and we need something to own them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index b9004a5..78de33f 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -33,6 +33,8 @@ namespace llvm {
class MachineConstantPoolValue;
class MachineModuleInfo;
class MCInst;
+ class MCContext;
+ class MCStreamer;
class DwarfWriter;
class Mangler;
class Section;
@@ -81,6 +83,17 @@ namespace llvm {
///
const TargetRegisterInfo *TRI;
+ /// OutContext - This is the context for the output file that we are
+ /// streaming. This owns all of the global MC-related objects for the
+ /// generated translation unit.
+ MCContext &OutContext;
+
+ /// OutStreamer - This is the MCStreamer object for the file we are
+ /// generating. This contains the transient state for the current
+ /// translation unit that we are generating (such as the current section
+ /// etc).
+ MCStreamer &OutStreamer;
+
/// The current machine function.
const MachineFunction *MF;