[PATCH] D45772: [Minor patch] Fix IR Module Printing
Son Tuan Vu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 23 08:03:11 PDT 2018
tyb0807 added a comment.
Hmmm, the problem is in `AssemblyWriter::printFunction()`, we already print a newline character at the start of the function, so in fact this issue only raises when we print `ModulePass`es. Removing the newline character printing in `AssemblyWriter::printFunction()` will lead to this:
@x = common dso_local global i32 0, align 4
@y = common dso_local global i32 0, align 4
@z = common dso_local global i32 0, align 4
; Function Attrs: noinline nounwind uwtable
instead of this:
@x = common dso_local global i32 0, align 4
@y = common dso_local global i32 0, align 4
@z = common dso_local global i32 0, align 4
; Function Attrs: noinline nounwind uwtable
What would be the best way to fix this?
Repository:
rL LLVM
https://reviews.llvm.org/D45772
More information about the llvm-commits
mailing list