Use a raw_stream to implement the mangler.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 29 Jan 2014 02:30:38 +0000 (02:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 29 Jan 2014 02:30:38 +0000 (02:30 +0000)
commit916d3120b30a0e77dde8368d4f44a97ed6bee53d
tree34dab64f1ea7b1e707ce150e843b552c308505d8
parent79c6a4f3478bd21558e2c779667bec7d69e94ccc
Use a raw_stream to implement the mangler.

This is a bit more convenient for some callers, but more importantly, it is
easier to implement correctly. Doing this removes the patching of already
printed data that was used for fastcall, fixing a crash with private fastcall
symbols.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200367 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Mangler.h
lib/IR/Mangler.cpp
test/CodeGen/X86/fastcall-correct-mangling.ll