[clang-tools-extra] bbc58c5 - [pseudo] Restore accidentally removed debug print

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 8 14:39:45 PDT 2022


Author: Sam McCall
Date: 2022-06-08T23:39:34+02:00
New Revision: bbc58c5e9ba39b234b6f526b313bbc35cbc2ba0f

URL: https://github.com/llvm/llvm-project/commit/bbc58c5e9ba39b234b6f526b313bbc35cbc2ba0f
DIFF: https://github.com/llvm/llvm-project/commit/bbc58c5e9ba39b234b6f526b313bbc35cbc2ba0f.diff

LOG: [pseudo] Restore accidentally removed debug print

Added: 
    

Modified: 
    clang-tools-extra/pseudo/lib/grammar/LRTable.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/pseudo/lib/grammar/LRTable.cpp b/clang-tools-extra/pseudo/lib/grammar/LRTable.cpp
index 74e4fb0fedb5..16c4029eec08 100644
--- a/clang-tools-extra/pseudo/lib/grammar/LRTable.cpp
+++ b/clang-tools-extra/pseudo/lib/grammar/LRTable.cpp
@@ -47,6 +47,7 @@ Statistics of the LR parsing table:
 std::string LRTable::dumpForTests(const Grammar &G) const {
   std::string Result;
   llvm::raw_string_ostream OS(Result);
+  OS << "LRTable:\n";
   for (StateID S = 0; S < StateOffset.size() - 1; ++S) {
     OS << llvm::formatv("State {0}\n", S);
     for (uint16_t Terminal = 0; Terminal < NumTerminals; ++Terminal) {


        


More information about the cfe-commits mailing list