[PGO] Refactor string writer code
authorXinliang David Li <davidxl@google.com>
Mon, 4 Jan 2016 22:01:02 +0000 (22:01 +0000)
committerXinliang David Li <davidxl@google.com>
Mon, 4 Jan 2016 22:01:02 +0000 (22:01 +0000)
commitd8ecf8629561d8049bccb3a1c9a0180d68ed4c26
treeeda35063f52b20e39199b316d665e1d41a28d873
parent1c201e976697f857662cef38d809d79a1d5bfe62
[PGO] Refactor string writer code

For readability and code sharing.
(Adapted from Suggestions by Vedant).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256784 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/InstrProf.cpp