Update microsoftDemangle() to work more like itaniumDemangle().
commit53bb7b2cc4a706111c25f7c84a82f4a97b3fad8e
authorNico Weber <nicolasweber@gmx.de>
Sat, 15 Sep 2018 18:24:20 +0000 (15 18:24 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sat, 15 Sep 2018 18:24:20 +0000 (15 18:24 +0000)
treeb30e639dbc3b937597dfbefdf299683c9df89dba
parentc10b814e37d30f0f1eae8182de57b184f3e0b3a3
Update microsoftDemangle() to work more like itaniumDemangle().

* Use same method of initializing the output stream and its buffer
* Allow a nullptr Status pointer
* Don't print the mangled name on demangling error
* Write to N (if it is non-nullptr)

Differential Revision: https://reviews.llvm.org/D52104

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342330 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Demangle/Utility.h
lib/Demangle/ItaniumDemangle.cpp
lib/Demangle/MicrosoftDemangle.cpp