summaryrefslogtreecommitdiff
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-31 08:07:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-31 08:07:55 +0000
commita03a368acca1c5ea7eb7de7a4164cbd22308c82f (patch)
treeb447efee9c0e8b7e9e41e7854bc78dc8216c9e6c /include/llvm/MC
parent6ce004dc76a8761a7e1a8830206ccaaf96736615 (diff)
downloadllvm-a03a368acca1c5ea7eb7de7a4164cbd22308c82f.tar.gz
llvm-a03a368acca1c5ea7eb7de7a4164cbd22308c82f.tar.bz2
llvm-a03a368acca1c5ea7eb7de7a4164cbd22308c82f.tar.xz
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/llvm/MC')
-rw-r--r--include/llvm/MC/MCAssembler.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 182d2fe4d0..adafcd6158 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();