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 | da11df0c22f5d0ba2e2be3ae4a7076c806233db8 (patch) | |
tree | 5c6b6d725fd502b9d691276ef457b0f0aa67f9a8 /lib/MC/MCDwarf.cpp | |
parent | 2c9905a1f3bcf22cc2f93332cc8411d11798ba07 (diff) | |
download | llvm-da11df0c22f5d0ba2e2be3ae4a7076c806233db8.tar.gz llvm-da11df0c22f5d0ba2e2be3ae4a7076c806233db8.tar.bz2 llvm-da11df0c22f5d0ba2e2be3ae4a7076c806233db8.tar.xz |
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>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCDwarf.cpp')
-rw-r--r-- | lib/MC/MCDwarf.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index a5528a2d42..f47553204b 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -1415,9 +1415,10 @@ namespace llvm { }; } -void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer, - bool UsingCFI, - bool IsEH) { +void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer, MCAsmBackend *MAB, + bool UsingCFI, bool IsEH) { + Streamer.generateCompactUnwindEncodings(MAB); + MCContext &Context = Streamer.getContext(); const MCObjectFileInfo *MOFI = Context.getObjectFileInfo(); FrameEmitterImpl Emitter(UsingCFI, IsEH); |