diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-03-14 19:28:51 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-03-14 19:28:51 +0000 |
| commit | 43dcf4d330452605faf895f00732f5414127fd61 (patch) | |
| tree | f7dc554d5d12ab1936ba9db94ba02e66b44e26d5 /llvm/lib/Target/ARM/MCTargetDesc | |
| parent | caea769f11d937c63fa2741ed834e129171007bd (diff) | |
| download | bcm5719-llvm-43dcf4d330452605faf895f00732f5414127fd61.tar.gz bcm5719-llvm-43dcf4d330452605faf895f00732f5414127fd61.zip | |
Fix asm printing of associated sections.
Make MCSectionELF::AssociatedSection be a link to a symbol, because
that's how it works in the assembly, and use it in the asm printer.
llvm-svn: 297769
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc')
| -rw-r--r-- | llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 043b54b356a..f7bdda491cb 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -1139,7 +1139,8 @@ inline void ARMELFStreamer::SwitchToEHSection(StringRef Prefix, if (Group) Flags |= ELF::SHF_GROUP; MCSectionELF *EHSection = getContext().getELFSection( - EHSecName, Type, Flags, 0, Group, FnSection.getUniqueID(), &FnSection); + EHSecName, Type, Flags, 0, Group, FnSection.getUniqueID(), + static_cast<const MCSymbolELF *>(&Fn)); assert(EHSection && "Failed to get the required EH section"); |

