mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Use llvm:Twine instead of std::to_string.
std::to_string is not available from the Android NDK. Reviewers: lhames, ovyalov, chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19638 llvm-svn: 267829
This commit is contained in:
parent
9fec0afb7a
commit
9f6b3224d4
@ -82,9 +82,9 @@ public:
|
|||||||
UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_HALF);
|
UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_HALF);
|
||||||
default:
|
default:
|
||||||
if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF)
|
if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF)
|
||||||
return make_error<RuntimeDyldError>("MachO ARM relocation type " +
|
return make_error<RuntimeDyldError>(("MachO ARM relocation type " +
|
||||||
std::to_string(RelType) +
|
Twine(RelType) +
|
||||||
" is out of range");
|
" is out of range").str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ public:
|
|||||||
ObjSectionToID);
|
ObjSectionToID);
|
||||||
else if (RelType == MachO::GENERIC_RELOC_VANILLA)
|
else if (RelType == MachO::GENERIC_RELOC_VANILLA)
|
||||||
return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID);
|
return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID);
|
||||||
return make_error<RuntimeDyldError>("Unhandled I386 scattered relocation "
|
return make_error<RuntimeDyldError>(("Unhandled I386 scattered relocation "
|
||||||
"type: " + std::to_string(RelType));
|
"type: " + Twine(RelType)).str());
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (RelType) {
|
switch (RelType) {
|
||||||
@ -59,9 +59,9 @@ public:
|
|||||||
UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_TLV);
|
UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_TLV);
|
||||||
default:
|
default:
|
||||||
if (RelType > MachO::GENERIC_RELOC_TLV)
|
if (RelType > MachO::GENERIC_RELOC_TLV)
|
||||||
return make_error<RuntimeDyldError>("MachO I386 relocation type " +
|
return make_error<RuntimeDyldError>(("MachO I386 relocation type " +
|
||||||
std::to_string(RelType) +
|
Twine(RelType) +
|
||||||
" is out of range");
|
" is out of range").str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,9 +64,9 @@ public:
|
|||||||
UNIMPLEMENTED_RELOC(MachO::X86_64_RELOC_TLV);
|
UNIMPLEMENTED_RELOC(MachO::X86_64_RELOC_TLV);
|
||||||
default:
|
default:
|
||||||
if (RelType > MachO::X86_64_RELOC_TLV)
|
if (RelType > MachO::X86_64_RELOC_TLV)
|
||||||
return make_error<RuntimeDyldError>("MachO X86_64 relocation type " +
|
return make_error<RuntimeDyldError>(("MachO X86_64 relocation type " +
|
||||||
std::to_string(RelType) +
|
Twine(RelType) +
|
||||||
" is out of range");
|
" is out of range").str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user