[PATCH] D14095: Use Twin instead of std::to_string

Oleksiy Vyalov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 26 15:16:19 PDT 2015


ovyalov created this revision.
ovyalov added reviewers: joker.eph, jroelofs, chandlerc.
ovyalov added a subscriber: llvm-commits.
Herald added subscribers: danalbert, tberghammer.

Use Twin instead of std::to_string - in order to make lib/Bitcode/Reader/BitcodeReader.cpp compatible with Android build.

http://reviews.llvm.org/D14095

Files:
  lib/Bitcode/Reader/BitcodeReader.cpp

Index: lib/Bitcode/Reader/BitcodeReader.cpp
===================================================================
--- lib/Bitcode/Reader/BitcodeReader.cpp
+++ lib/Bitcode/Reader/BitcodeReader.cpp
@@ -3113,8 +3113,8 @@
     case bitc::IDENTIFICATION_CODE_EPOCH: { // EPOCH:      [epoch#]
       unsigned epoch = (unsigned)Record[0];
       if (epoch != bitc::BITCODE_CURRENT_EPOCH) {
-        auto BitcodeEpoch = std::to_string(epoch);
-        auto CurrentEpoch = std::to_string(bitc::BITCODE_CURRENT_EPOCH);
+        auto BitcodeEpoch = Twine(epoch);
+        auto CurrentEpoch = Twine(bitc::BITCODE_CURRENT_EPOCH);
         return error(Twine("Incompatible epoch: Bitcode '") + BitcodeEpoch +
                      "' vs current: '" + CurrentEpoch + "'");
       }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14095.38468.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151026/60d5a56c/attachment.bin>


More information about the llvm-commits mailing list