diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-02 05:59:38 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-02 05:59:38 +0000 |
commit | e23930543c0de0adcfec00cd18e9243ad812a167 (patch) | |
tree | b07c2e6afc03736e2b4ca70038cd6db6d4908073 /lib/MC/MCObjectStreamer.cpp | |
parent | dedb045c3296c831962c4ae101531c38c273ba89 (diff) | |
download | external_llvm-e23930543c0de0adcfec00cd18e9243ad812a167.zip external_llvm-e23930543c0de0adcfec00cd18e9243ad812a167.tar.gz external_llvm-e23930543c0de0adcfec00cd18e9243ad812a167.tar.bz2 |
Move EmitValueToOffset to the ObjectStreamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectStreamer.cpp')
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index a8ea1a4..331f726 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -179,6 +179,11 @@ void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) { getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, IF->getFixups()); } +void MCObjectStreamer::EmitValueToOffset(const MCExpr *Offset, + unsigned char Value) { + new MCOrgFragment(*Offset, Value, getCurrentSectionData()); +} + void MCObjectStreamer::Finish() { getAssembler().Finish(); } |