From: Aditya Nandakumar Date: Mon, 4 Feb 2019 21:06:24 +0000 (+0000) Subject: [Tablegen][DAG]: Fix build breakage when LLVM_ENABLE_DAGISEL_COV=1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbf9e4b7e7c6219c5aaa0446979e7ccec463bfaf;p=llvm [Tablegen][DAG]: Fix build breakage when LLVM_ENABLE_DAGISEL_COV=1 LLVM_ENABLE_DAGISEL_COV can be used to instrument DAGISel tablegen selection code to show which patterns along with Complex patterns were used when selecting instructions. Unfortunately this is turned off by default and was broken but never tested. This required a simple fix (missing new line) to get it to build again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353091 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index bcfb2b7a75d..e83e7731229 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -258,7 +258,7 @@ void MatcherTableEmitter::EmitPatternMatchTable(raw_ostream &OS) { OS << "\n};"; OS << "\nreturn StringRef(PATTERN_MATCH_TABLE[Index]);"; - OS << "\n}"; + OS << "\n}\n"; EndEmitFunction(OS); BeginEmitFunction(OS, "StringRef", "getIncludePathForIndex(unsigned Index)", @@ -272,7 +272,7 @@ void MatcherTableEmitter::EmitPatternMatchTable(raw_ostream &OS) { OS << "\n};"; OS << "\nreturn StringRef(INCLUDE_PATH_TABLE[Index]);"; - OS << "\n}"; + OS << "\n}\n"; EndEmitFunction(OS); }