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

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