diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-09-09 19:48:37 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-09-09 19:48:37 +0000 |
| commit | 550c76dbd68abc17cd32c859de3c24de94ad5cb3 (patch) | |
| tree | 02b7314fc003a8fbfea797105332710102239dd7 /llvm/lib/MC/MCMachOStreamer.cpp | |
| parent | 116868eaddccd6080ca0c564c6d7e44ebebcb3c9 (diff) | |
| download | bcm5719-llvm-550c76dbd68abc17cd32c859de3c24de94ad5cb3.tar.gz bcm5719-llvm-550c76dbd68abc17cd32c859de3c24de94ad5cb3.zip | |
Call generateCompactUnwindEncodings() right before we need to output the frame information.
There are more than one paths to where the frame information is emitted. Place
the call to generateCompactUnwindEncodings() into the method which outputs the
frame information, thus ensuring that the encoding is there for every path. This
involved threading the MCAsmBackend object through to this method.
<rdar://problem/13623355>
llvm-svn: 190335
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCMachOStreamer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index f914f62c2f7..e628461f1d6 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -396,8 +396,7 @@ void MCMachOStreamer::EmitInstToData(const MCInst &Inst) { } void MCMachOStreamer::FinishImpl() { - generateCompactUnwindEncodings(getAssembler().getBackend()); - EmitFrames(true); + EmitFrames(&getAssembler().getBackend(), true); // We have to set the fragment atom associations so we can relax properly for // Mach-O. |

