diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 10:43:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 10:43:18 +0000 |
commit | cf871e5abff63a53f9e97ff9e37fb7297d0cb847 (patch) | |
tree | 34f7d02167c2634afab57f31ca999ee8a44e75b9 /include | |
parent | 2df4ceba15c130005967ee9e5fb4aa5568de1b0c (diff) | |
download | external_llvm-cf871e5abff63a53f9e97ff9e37fb7297d0cb847.zip external_llvm-cf871e5abff63a53f9e97ff9e37fb7297d0cb847.tar.gz external_llvm-cf871e5abff63a53f9e97ff9e37fb7297d0cb847.tar.bz2 |
MC: Sink code emitter into MCAssembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 41e7515..8eb8e63 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -24,6 +24,7 @@ class raw_ostream; class MCAsmLayout; class MCAssembler; class MCContext; +class MCCodeEmitter; class MCExpr; class MCFragment; class MCObjectWriter; @@ -598,6 +599,8 @@ private: TargetAsmBackend &Backend; + MCCodeEmitter &Emitter; + raw_ostream &OS; iplist<MCSectionData> Sections; @@ -683,13 +686,16 @@ public: // concrete and require clients to pass in a target like object. The other // option is to make this abstract, and have targets provide concrete // implementations as we do with AsmParser. - MCAssembler(MCContext &_Context, TargetAsmBackend &_Backend, raw_ostream &OS); + MCAssembler(MCContext &_Context, TargetAsmBackend &_Backend, + MCCodeEmitter &_Emitter, raw_ostream &OS); ~MCAssembler(); MCContext &getContext() const { return Context; } TargetAsmBackend &getBackend() const { return Backend; } + MCCodeEmitter &getEmitter() const { return Emitter; } + /// Finish - Do final processing and write the object to the output stream. void Finish(); |