diff options
| author | Justin Bogner <mail@justinbogner.com> | 2015-02-05 19:54:27 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2015-02-05 19:54:27 +0000 |
| commit | de3dec5d162ea3c9a4ff67a75b02c1bc3744b559 (patch) | |
| tree | 6179f44ed714992403da9e03ea1b112559c59c0b /llvm/unittests/ProfileData | |
| parent | 566e584bd4a12566f27fc3c3712a690d44a4635a (diff) | |
| download | bcm5719-llvm-de3dec5d162ea3c9a4ff67a75b02c1bc3744b559.tar.gz bcm5719-llvm-de3dec5d162ea3c9a4ff67a75b02c1bc3744b559.zip | |
InstrProf: Avoid using std::to_string
Apparently std::to_string doesn't exist in mingw32:
http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/builds/7990
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015
llvm-svn: 228340
Diffstat (limited to 'llvm/unittests/ProfileData')
| -rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index 5709f91b0a4..859c5127a67 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -13,7 +13,7 @@ #include "llvm/Support/raw_ostream.h" #include "gtest/gtest.h" -#include <string> +#include <sstream> using namespace llvm; using namespace coverage; @@ -52,7 +52,9 @@ readCoverageRegions(std::string Coverage, int NumFiles) { SmallVector<std::string, 8> Filenames; SmallVector<StringRef, 8> FilenameRefs; for (int I = 0; I < NumFiles; ++I) { - Filenames.push_back("file" + std::to_string(I)); + std::ostringstream S; + S << "file" << I; + Filenames.push_back(S.str()); FilenameRefs.push_back(Filenames.back()); } |

