[llvm] 21f5f50 - Two patches to fix the broken build.
Paul C. Anagnostopoulos via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 13:01:48 PDT 2020
Author: Paul C. Anagnostopoulos
Date: 2020-09-22T16:00:31-04:00
New Revision: 21f5f509c8a066a9647a3f5b86f6931db40b7fc7
URL: https://github.com/llvm/llvm-project/commit/21f5f509c8a066a9647a3f5b86f6931db40b7fc7
DIFF: https://github.com/llvm/llvm-project/commit/21f5f509c8a066a9647a3f5b86f6931db40b7fc7.diff
LOG: Two patches to fix the broken build.
One to fix a C++ compiler warning.
One to allow Sphinx to find a new document.
Added:
Modified:
llvm/docs/TableGen/index.rst
llvm/lib/TableGen/TableGenBackendSkeleton.cpp
Removed:
################################################################################
diff --git a/llvm/docs/TableGen/index.rst b/llvm/docs/TableGen/index.rst
index 6c9ba9e85462..fd4333dbef5f 100644
--- a/llvm/docs/TableGen/index.rst
+++ b/llvm/docs/TableGen/index.rst
@@ -9,6 +9,7 @@ TableGen Overview
:hidden:
BackEnds
+ BackGuide
ProgRef
Deficiencies
@@ -276,7 +277,9 @@ Pre-processed output should be used if the same information needs to be used
in
diff erent contexts (like Instruction names), so your back-end should print
a meta-information list that can be shaped into
diff erent compile-time formats.
-See the `TableGen BackEnds <BackEnds.html>`_ for more information.
+See :doc:`TableGen BackEnds <./BackEnds>` for a list of available
+backends, and see the :doc:`TableGen Backend Developer's Guide <./BackGuide>`
+for information on how to write a new backend.
TableGen Deficiencies
=====================
diff --git a/llvm/lib/TableGen/TableGenBackendSkeleton.cpp b/llvm/lib/TableGen/TableGenBackendSkeleton.cpp
index e3885154f091..bf1fccdee404 100644
--- a/llvm/lib/TableGen/TableGenBackendSkeleton.cpp
+++ b/llvm/lib/TableGen/TableGenBackendSkeleton.cpp
@@ -47,6 +47,8 @@ class SkeletonEmitter {
void SkeletonEmitter::run(raw_ostream &OS) {
emitSourceFileHeader("Skeleton data structures", OS);
+
+ (void)Records; // To suppress unused variable warning; remove on use.
}
namespace llvm {
More information about the llvm-commits
mailing list