diff options
author | Matthias Braun <matze@braunis.de> | 2017-12-14 03:59:24 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-12-14 03:59:24 +0000 |
commit | 34045e15682bbc1d0b36a7f31a8fa21c226431c6 (patch) | |
tree | 6bed4a0f994fc63c17789ce842d45d1ad71d74a6 /include | |
parent | 177a4fc2d2ce419e07e5607ccf598c602b67ae3d (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index e4a969e9449..481d96724d4 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -430,6 +430,8 @@ public: virtual void EmitBuildVersion(unsigned Platform, unsigned Major, unsigned Minor, unsigned Update) {} + void EmitVersionForTarget(const Triple &Target); + /// \brief Note in the output that the specified \p Func is a Thumb mode /// function (ARM target only). virtual void EmitThumbFunc(MCSymbol *Func); |