SamplePGO - Do not use std::to_string in diagnostics.
authorDiego Novillo <dnovillo@google.com>
Sun, 29 Nov 2015 18:23:26 +0000 (18:23 +0000)
committerDiego Novillo <dnovillo@google.com>
Sun, 29 Nov 2015 18:23:26 +0000 (18:23 +0000)
commit173327b7af38d294ff8fa7f77ed3a1c68f84a24c
tree2dc9dece997f8285a028b41e95afa2aa76cf5416
parent96be2c60e32eb4397809ebad636ffee1e05560fb
SamplePGO - Do not use std::to_string in diagnostics.

This fixes buildbots in systems that std::to_string is not present. It
also tidies the output of the diagnostic to render doubles a bit better
(thanks Ben Kramer for help with string streams and format).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SampleProfile.cpp