This is an archive of the discontinued LLVM Phabricator instance.

Use Twin instead of std::to_string
ClosedPublic

Authored by ovyalov on Oct 26 2015, 3:16 PM.

Details

Summary

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

Diff Detail

Event Timeline

ovyalov updated this revision to Diff 38468.Oct 26 2015, 3:16 PM
ovyalov retitled this revision from to Use Twin instead of std::to_string .
ovyalov updated this object.
ovyalov added a subscriber: llvm-commits.
jroelofs accepted this revision.Oct 26 2015, 3:20 PM
jroelofs edited edge metadata.

LGTM with that change.

lib/Bitcode/Reader/BitcodeReader.cpp
3115–3116

Drop the temporaries while you're at it:

return error(Twine("Incompatible epoch: Bitcode '") + epoch +
             "' vs current: '" + bitc::BITCODE_CURRENT_EPOCH + "'");
This revision is now accepted and ready to land.Oct 26 2015, 3:20 PM
ovyalov updated this revision to Diff 38470.Oct 26 2015, 3:24 PM
ovyalov edited edge metadata.

Addressed review comment.

mehdi_amini added inline comments.Oct 26 2015, 3:30 PM
lib/Bitcode/Reader/BitcodeReader.cpp
3115–3116

+1, I wish I knew Twine accepts this :)

mehdi_amini accepted this revision.Oct 26 2015, 3:30 PM
mehdi_amini edited edge metadata.

Ah, right, I forgot those constructors were marked explicit.... LGTM!