OSDN Git Service

MC/AsmPrinter: Reduce code duplication.
authorMatthias Braun <matze@braunis.de>
Thu, 14 Dec 2017 03:59:24 +0000 (03:59 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 14 Dec 2017 03:59:24 +0000 (03:59 +0000)
commit34045e15682bbc1d0b36a7f31a8fa21c226431c6
tree6bed4a0f994fc63c17789ce842d45d1ad71d74a6
parent177a4fc2d2ce419e07e5607ccf598c602b67ae3d
MC/AsmPrinter: Reduce code duplication.

Factor out duplicated code emitting mach-o version-min specifiers.

This should be NFC but happens to fix a bug where the code in
MCMachoStreamer didn't take the version skew between darwin and macos
versions into account.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320666 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCMachOStreamer.cpp
lib/MC/MCStreamer.cpp
test/MC/MachO/diff-with-two-sections.s