diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-09 22:59:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-09 22:59:55 +0000 |
commit | 73c557458c0e28899f37c557bcaf36c2b6701260 (patch) | |
tree | 477a40c5bb9a53e0c187e90bbced4892726a2fe3 /lib/MC/MCMachOStreamer.cpp | |
parent | 1f8075d7d232dd0c7b0caa81ed3ce426a13f5a66 (diff) |
MC: First cut at MCFixup, for getting fixup/relocation information out of an MCCodeEmitter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCMachOStreamer.cpp')
-rw-r--r-- | lib/MC/MCMachOStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index 40a21ad5dd..99a819f719 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -366,9 +366,10 @@ void MCMachOStreamer::EmitInstruction(const MCInst &Inst) { CurSectionData->setHasInstructions(true); // FIXME: Relocations! + SmallVector<MCFixup, 4> Fixups; SmallString<256> Code; raw_svector_ostream VecOS(Code); - Emitter->EncodeInstruction(Inst, VecOS); + Emitter->EncodeInstruction(Inst, VecOS, Fixups); EmitBytes(VecOS.str(), 0); } |