OSDN Git Service

[llvm-undname] Flush output before demangling.
authorZachary Turner <zturner@google.com>
Sat, 21 Jul 2018 15:39:05 +0000 (15:39 +0000)
committerZachary Turner <zturner@google.com>
Sat, 21 Jul 2018 15:39:05 +0000 (15:39 +0000)
commit322f6d046b0761b941fcb94180a1a6e8bd628b64
tree89f403b427cf60012625112d06cf7fd737238270
parent0754d77d6ad98476da03f88c8ca54ce7149eeb3c
[llvm-undname] Flush output before demangling.

If an error occurs and we write it to stderr, it could appear
before we wrote the mangled name which we're undecorating.
By flushing stdout first, we ensure that the messages are always
sequenced in the correct order.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337645 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-undname/llvm-undname.cpp