diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:07:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:07:55 +0000 |
commit | a03a368acca1c5ea7eb7de7a4164cbd22308c82f (patch) | |
tree | b447efee9c0e8b7e9e41e7854bc78dc8216c9e6c /include | |
parent | 6ce004dc76a8761a7e1a8830206ccaaf96736615 (diff) | |
download | external_llvm-a03a368acca1c5ea7eb7de7a4164cbd22308c82f.zip external_llvm-a03a368acca1c5ea7eb7de7a4164cbd22308c82f.tar.gz external_llvm-a03a368acca1c5ea7eb7de7a4164cbd22308c82f.tar.bz2 |
llvm-mc: Add MCContext to MCAssembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 182d2fe..adafcd6 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -21,6 +21,7 @@ namespace llvm { class raw_ostream; class MCAssembler; +class MCContext; class MCSection; class MCSectionData; @@ -559,6 +560,8 @@ private: MCAssembler(const MCAssembler&); // DO NOT IMPLEMENT void operator=(const MCAssembler&); // DO NOT IMPLEMENT + MCContext &Context; + raw_ostream &OS; iplist<MCSectionData> Sections; @@ -584,9 +587,11 @@ 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(raw_ostream &OS); + MCAssembler(MCContext &_Context, raw_ostream &OS); ~MCAssembler(); + MCContext &getContext() const { return Context; } + /// Finish - Do final processing and write the object to the output stream. void Finish(); |