From 21f5f509c8a066a9647a3f5b86f6931db40b7fc7 Mon Sep 17 00:00:00 2001 From: "Paul C. Anagnostopoulos" Date: Tue, 22 Sep 2020 15:55:51 -0400 Subject: [PATCH] Two patches to fix the broken build. One to fix a C++ compiler warning. One to allow Sphinx to find a new document. --- llvm/docs/TableGen/index.rst | 5 ++++- llvm/lib/TableGen/TableGenBackendSkeleton.cpp | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/llvm/docs/TableGen/index.rst b/llvm/docs/TableGen/index.rst index 6c9ba9e..fd4333d 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 different contexts (like Instruction names), so your back-end should print a meta-information list that can be shaped into different compile-time formats. -See the `TableGen BackEnds `_ 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 e388515..bf1fccd 100644 --- a/llvm/lib/TableGen/TableGenBackendSkeleton.cpp +++ b/llvm/lib/TableGen/TableGenBackendSkeleton.cpp @@ -47,6 +47,8 @@ public: void SkeletonEmitter::run(raw_ostream &OS) { emitSourceFileHeader("Skeleton data structures", OS); + + (void)Records; // To suppress unused variable warning; remove on use. } namespace llvm { -- 2.7.4