[llvm-commits] [llvm] r158350 - /llvm/trunk/utils/TableGen/SubtargetEmitter.cpp

Hal Finkel hfinkel at anl.gov
Mon Jun 11 21:21:36 PDT 2012


Author: hfinkel
Date: Mon Jun 11 23:21:36 2012
New Revision: 158350

URL: http://llvm.org/viewvc/llvm-project?rev=158350&view=rev
Log:
Add two newlines in ParseSubtargetFeatures's debug output after the CPU is printed.

There is otherwise not a newline between the CPU name and the start of the next
pass's output which makes both difficult to read.

Modified:
    llvm/trunk/utils/TableGen/SubtargetEmitter.cpp

Modified: llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SubtargetEmitter.cpp?rev=158350&r1=158349&r2=158350&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/SubtargetEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/SubtargetEmitter.cpp Mon Jun 11 23:21:36 2012
@@ -696,7 +696,7 @@
   OS << Target;
   OS << "Subtarget::ParseSubtargetFeatures(StringRef CPU, StringRef FS) {\n"
      << "  DEBUG(dbgs() << \"\\nFeatures:\" << FS);\n"
-     << "  DEBUG(dbgs() << \"\\nCPU:\" << CPU);\n";
+     << "  DEBUG(dbgs() << \"\\nCPU:\" << CPU << \"\\n\\n\");\n";
 
   if (Features.empty()) {
     OS << "}\n";





More information about the llvm-commits mailing list