Simplify the creation of compressed debug sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Apr 2015 21:51:58 +0000 (21:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Apr 2015 21:51:58 +0000 (21:51 +0000)
commita55dd52dc89f93ce88079c9fa32a9625e222e949
treebe9135b1774a889cc50ce8760e9f75fe48a5bc3f
parentcdc4c42bac7ad7db46a7245c614ca2ab4f70947d
Simplify the creation of compressed debug sections.

This is actually fairly simple in the current code layout: Check if we should
compress just before writing out and everything else just works.

This removes the last case in which the object writer was creating a
fragment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp