[PATCH] D45772: [Minor patch] Fix IR Module Printing

Son Tuan Vu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 18 08:08:51 PDT 2018


tyb0807 created this revision.
Herald added a subscriber: llvm-commits.

Add a  CRLF character before printing an IR Module in `IRPrintingPasses`


Repository:
  rL LLVM

https://reviews.llvm.org/D45772

Files:
  lib/IR/AsmWriter.cpp


Index: lib/IR/AsmWriter.cpp
===================================================================
--- lib/IR/AsmWriter.cpp
+++ lib/IR/AsmWriter.cpp
@@ -2369,6 +2369,7 @@
 }
 
 void AssemblyWriter::printModule(const Module *M) {
+  Out << '\n';
   Machine.initialize();
 
   if (ShouldPreserveUseListOrder)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45772.142940.patch
Type: text/x-patch
Size: 304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180418/c4069659/attachment.bin>


More information about the llvm-commits mailing list