Blame SOURCES/0001-docs-Convert-remaining-command-guide-entries-from-md.patch

4fb979
From e4e77bb8bf741f52b43b90987646f1c118914848 Mon Sep 17 00:00:00 2001
4fb979
From: Jordan Rupprecht <rupprecht@google.com>
4fb979
Date: Wed, 21 Aug 2019 18:00:17 +0000
4fb979
Subject: [PATCH] [docs] Convert remaining command guide entries from md to
4fb979
 rst.
4fb979
4fb979
Summary:
4fb979
Linking between markdown and rst files is currently not supported very well, e.g. the current llvm-addr2line docs [1] link to "llvm-symbolizer" instead of "llvm-symbolizer.html". This is weirdly broken in different ways depending on which versions of sphinx and recommonmark are being used, so workaround the bug by using rst everywhere.
4fb979
4fb979
[1] http://llvm.org/docs/CommandGuide/llvm-addr2line.html
4fb979
4fb979
Reviewers: jhenderson
4fb979
4fb979
Reviewed By: jhenderson
4fb979
4fb979
Subscribers: lebedev.ri, llvm-commits
4fb979
4fb979
Tags: #llvm
4fb979
4fb979
Differential Revision: https://reviews.llvm.org/D66305
4fb979
4fb979
llvm-svn: 369553
4fb979
---
4fb979
 llvm/docs/CommandGuide/llvm-addr2line.md  | 28 -----------------------
4fb979
 llvm/docs/CommandGuide/llvm-addr2line.rst | 38 +++++++++++++++++++++++++++++++
4fb979
 llvm/docs/CommandGuide/llvm-ranlib.md     | 17 --------------
4fb979
 llvm/docs/CommandGuide/llvm-ranlib.rst    | 23 +++++++++++++++++++
4fb979
 llvm/docs/CommandGuide/llvm-size.md       | 10 --------
4fb979
 llvm/docs/CommandGuide/llvm-size.rst      | 15 ++++++++++++
4fb979
 llvm/docs/CommandGuide/llvm-strings.md    | 10 --------
4fb979
 llvm/docs/CommandGuide/llvm-strings.rst   | 15 ++++++++++++
4fb979
 8 files changed, 91 insertions(+), 65 deletions(-)
4fb979
 delete mode 100644 llvm/docs/CommandGuide/llvm-addr2line.md
4fb979
 create mode 100644 llvm/docs/CommandGuide/llvm-addr2line.rst
4fb979
 delete mode 100644 llvm/docs/CommandGuide/llvm-ranlib.md
4fb979
 create mode 100644 llvm/docs/CommandGuide/llvm-ranlib.rst
4fb979
 delete mode 100644 llvm/docs/CommandGuide/llvm-size.md
4fb979
 create mode 100644 llvm/docs/CommandGuide/llvm-size.rst
4fb979
 delete mode 100644 llvm/docs/CommandGuide/llvm-strings.md
4fb979
 create mode 100644 llvm/docs/CommandGuide/llvm-strings.rst
4fb979
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-addr2line.md b/llvm/docs/CommandGuide/llvm-addr2line.md
4fb979
deleted file mode 100644
4fb979
index 03224c4..0000000
4fb979
--- a/llvm/docs/CommandGuide/llvm-addr2line.md
4fb979
+++ /dev/null
4fb979
@@ -1,28 +0,0 @@
4fb979
-# llvm-addr2line - a drop-in replacement for addr2line
4fb979
-
4fb979
-## SYNOPSIS
4fb979
-
4fb979
-**llvm-addr2line** [*options*]
4fb979
-
4fb979
-## DESCRIPTION
4fb979
-
4fb979
-**llvm-addr2line** is an alias for the [llvm-symbolizer](llvm-symbolizer) tool
4fb979
-with different defaults. The goal is to make it a drop-in replacement for
4fb979
-GNU's **addr2line**.
4fb979
-
4fb979
-Here are some of those differences:
4fb979
-
4fb979
-* Defaults not to print function names. Use [-f](llvm-symbolizer-opt-f)
4fb979
-  to enable that.
4fb979
-
4fb979
-* Defaults not to demangle function names. Use [-C](llvm-symbolizer-opt-C)
4fb979
-  to switch the demangling on.
4fb979
-
4fb979
-* Defaults not to print inlined frames. Use [-i](llvm-symbolizer-opt-i)
4fb979
-  to show inlined frames for a source code location in an inlined function.
4fb979
-
4fb979
-* Uses [--output-style=GNU](llvm-symbolizer-opt-output-style) by default.
4fb979
-
4fb979
-## SEE ALSO
4fb979
-
4fb979
-Refer to [llvm-symbolizer](llvm-symbolizer) for additional information.
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-addr2line.rst b/llvm/docs/CommandGuide/llvm-addr2line.rst
4fb979
new file mode 100644
4fb979
index 0000000..08f1b69
4fb979
--- /dev/null
4fb979
+++ b/llvm/docs/CommandGuide/llvm-addr2line.rst
4fb979
@@ -0,0 +1,38 @@
4fb979
+llvm-addr2line - a drop-in replacement for addr2line
4fb979
+====================================================
4fb979
+
4fb979
+.. program:: llvm-addr2line
4fb979
+
4fb979
+SYNOPSIS
4fb979
+--------
4fb979
+
4fb979
+:program:`llvm-addr2line` [*options*]
4fb979
+
4fb979
+DESCRIPTION
4fb979
+-----------
4fb979
+
4fb979
+:program:`llvm-addr2line` is an alias for the :manpage:`llvm-symbolizer(1)`
4fb979
+tool with different defaults. The goal is to make it a drop-in replacement for
4fb979
+GNU's :program:`addr2line`.
4fb979
+
4fb979
+Here are some of those differences:
4fb979
+
4fb979
+-  Defaults not to print function names. Use `-f`_ to enable that.
4fb979
+
4fb979
+-  Defaults not to demangle function names. Use `-C`_ to switch the
4fb979
+   demangling on.
4fb979
+
4fb979
+-  Defaults not to print inlined frames. Use `-i`_ to show inlined
4fb979
+   frames for a source code location in an inlined function.
4fb979
+
4fb979
+-  Uses `--output-style=GNU`_ by default.
4fb979
+
4fb979
+SEE ALSO
4fb979
+--------
4fb979
+
4fb979
+:manpage:`llvm-symbolizer(1)`
4fb979
+
4fb979
+.. _-f: llvm-symbolizer.html#llvm-symbolizer-opt-f
4fb979
+.. _-C: llvm-symbolizer.html#llvm-symbolizer-opt-c
4fb979
+.. _-i: llvm-symbolizer.html#llvm-symbolizer-opt-i
4fb979
+.. _--output-style=GNU: llvm-symbolizer.html#llvm-symbolizer-opt-output-style
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-ranlib.md b/llvm/docs/CommandGuide/llvm-ranlib.md
4fb979
deleted file mode 100644
4fb979
index 4377364..0000000
4fb979
--- a/llvm/docs/CommandGuide/llvm-ranlib.md
4fb979
+++ /dev/null
4fb979
@@ -1,17 +0,0 @@
4fb979
-# llvm-ranlib - generates an archive index
4fb979
-
4fb979
-## SYNOPSIS
4fb979
-
4fb979
-**llvm-ranlib** [*options*]
4fb979
-
4fb979
-## DESCRIPTION
4fb979
-
4fb979
-**llvm-ranlib** is an alias for the [llvm-ar](llvm-ar.html) tool that generates
4fb979
-an index for an archive. It can be used as a replacement for GNU's **ranlib**
4fb979
-tool.
4fb979
-
4fb979
-Running **llvm-ranlib** is equivalent to running **llvm-ar s**.
4fb979
-
4fb979
-## SEE ALSO
4fb979
-
4fb979
-Refer to [llvm-ar](llvm-ar.html) for additional information.
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-ranlib.rst b/llvm/docs/CommandGuide/llvm-ranlib.rst
4fb979
new file mode 100644
4fb979
index 0000000..314a330
4fb979
--- /dev/null
4fb979
+++ b/llvm/docs/CommandGuide/llvm-ranlib.rst
4fb979
@@ -0,0 +1,23 @@
4fb979
+llvm-ranlib - generates an archive index
4fb979
+========================================
4fb979
+
4fb979
+.. program:: llvm-ranlib
4fb979
+
4fb979
+SYNOPSIS
4fb979
+--------
4fb979
+
4fb979
+:program:`llvm-ranlib` [*options*]
4fb979
+
4fb979
+DESCRIPTION
4fb979
+-----------
4fb979
+
4fb979
+:program:`llvm-ranlib` is an alias for the :doc:`llvm-ar <llvm-ar>` tool that
4fb979
+generates an index for an archive. It can be used as a replacement for GNU’s
4fb979
+:program:`ranlib` tool.
4fb979
+
4fb979
+Running :program:`llvm-ranlib` is equivalent to running ``llvm-ar s``.
4fb979
+
4fb979
+SEE ALSO
4fb979
+--------
4fb979
+
4fb979
+:manpage:`llvm-ar(1)`
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-size.md b/llvm/docs/CommandGuide/llvm-size.md
4fb979
deleted file mode 100644
4fb979
index 3952708..0000000
4fb979
--- a/llvm/docs/CommandGuide/llvm-size.md
4fb979
+++ /dev/null
4fb979
@@ -1,10 +0,0 @@
4fb979
-# llvm-size - print segment sizes
4fb979
-
4fb979
-## SYNOPSIS
4fb979
-
4fb979
-**llvm-size** [*options*]
4fb979
-
4fb979
-## DESCRIPTION
4fb979
-
4fb979
-**llvm-size** is a tool that prints segment sizes in object files. The goal is
4fb979
-to make it a drop-in replacement for GNU's **size**.
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-size.rst b/llvm/docs/CommandGuide/llvm-size.rst
4fb979
new file mode 100644
4fb979
index 0000000..0dce15c
4fb979
--- /dev/null
4fb979
+++ b/llvm/docs/CommandGuide/llvm-size.rst
4fb979
@@ -0,0 +1,15 @@
4fb979
+llvm-size - print size information
4fb979
+==================================
4fb979
+
4fb979
+.. program:: llvm-size
4fb979
+
4fb979
+SYNOPSIS
4fb979
+--------
4fb979
+
4fb979
+:program:`llvm-size` [*options*]
4fb979
+
4fb979
+DESCRIPTION
4fb979
+-----------
4fb979
+
4fb979
+:program:`llvm-size` is a tool that prints size information for object files.
4fb979
+The goal is to make it a drop-in replacement for GNU’s :program:`size`.
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-strings.md b/llvm/docs/CommandGuide/llvm-strings.md
4fb979
deleted file mode 100644
4fb979
index b5871c4..0000000
4fb979
--- a/llvm/docs/CommandGuide/llvm-strings.md
4fb979
+++ /dev/null
4fb979
@@ -1,10 +0,0 @@
4fb979
-# llvm-strings - print strings
4fb979
-
4fb979
-## SYNOPSIS
4fb979
-
4fb979
-**llvm-strings** [*options*]
4fb979
-
4fb979
-## DESCRIPTION
4fb979
-
4fb979
-**llvm-strings** is a tool that prints strings in object files. The goal is to
4fb979
-make it a drop-in replacement for GNU's **size**.
4fb979
diff --git a/llvm/docs/CommandGuide/llvm-strings.rst b/llvm/docs/CommandGuide/llvm-strings.rst
4fb979
new file mode 100644
4fb979
index 0000000..d8ab9cb
4fb979
--- /dev/null
4fb979
+++ b/llvm/docs/CommandGuide/llvm-strings.rst
4fb979
@@ -0,0 +1,15 @@
4fb979
+llvm-strings - print strings
4fb979
+============================
4fb979
+
4fb979
+.. program:: llvm-strings
4fb979
+
4fb979
+SYNOPSIS
4fb979
+--------
4fb979
+
4fb979
+:program:`llvm-strings` [*options*]
4fb979
+
4fb979
+DESCRIPTION
4fb979
+-----------
4fb979
+
4fb979
+:program:`llvm-strings` is a tool that prints strings in files. The goal is to
4fb979
+make it a drop-in replacement for GNU’s :program:`strings`.
4fb979
-- 
4fb979
1.8.3.1
4fb979