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 | b311a6b3aef7f5badb60529ab5d5f7939b2b6822 (patch) | |
tree | 502b1f737bb1743d7a02af7f1fa6e19df324d4ca /llvm/lib/MC/MCAsmStreamer.cpp | |
parent | bf02536262e484f3c44f7db8d7c584f4588ccaa2 (diff) | |
download | bcm5719-llvm-b311a6b3aef7f5badb60529ab5d5f7939b2b6822.tar.gz bcm5719-llvm-b311a6b3aef7f5badb60529ab5d5f7939b2b6822.zip |
MC: First cut at MCFixup, for getting fixup/relocation information out of an MCCodeEmitter.
llvm-svn: 95708
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index d2e48583e02..f3c636c6a53 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -535,8 +535,9 @@ void MCAsmStreamer::EmitInstruction(const MCInst &Inst) { // Show the encoding in a comment if we have a code emitter. if (Emitter) { SmallString<256> Code; + SmallVector<MCFixup, 4> Fixups; raw_svector_ostream VecOS(Code); - Emitter->EncodeInstruction(Inst, VecOS); + Emitter->EncodeInstruction(Inst, VecOS, Fixups); VecOS.flush(); raw_ostream &OS = GetCommentOS(); |