diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld')
3 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h index 9a64f20914b..0abf9daba50 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h @@ -82,9 +82,9 @@ public: UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_HALF); default: if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) - return make_error<RuntimeDyldError>("MachO ARM relocation type " + - std::to_string(RelType) + - " is out of range"); + return make_error<RuntimeDyldError>(("MachO ARM relocation type " + + Twine(RelType) + + " is out of range").str()); break; } diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h index 2a41df16f26..2c79b3f7c81 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h @@ -49,8 +49,8 @@ public: ObjSectionToID); else if (RelType == MachO::GENERIC_RELOC_VANILLA) return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); - return make_error<RuntimeDyldError>("Unhandled I386 scattered relocation " - "type: " + std::to_string(RelType)); + return make_error<RuntimeDyldError>(("Unhandled I386 scattered relocation " + "type: " + Twine(RelType)).str()); } switch (RelType) { @@ -59,9 +59,9 @@ public: UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_TLV); default: if (RelType > MachO::GENERIC_RELOC_TLV) - return make_error<RuntimeDyldError>("MachO I386 relocation type " + - std::to_string(RelType) + - " is out of range"); + return make_error<RuntimeDyldError>(("MachO I386 relocation type " + + Twine(RelType) + + " is out of range").str()); break; } diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h index 005d073f168..2aad3c832e2 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h @@ -64,9 +64,9 @@ public: UNIMPLEMENTED_RELOC(MachO::X86_64_RELOC_TLV); default: if (RelType > MachO::X86_64_RELOC_TLV) - return make_error<RuntimeDyldError>("MachO X86_64 relocation type " + - std::to_string(RelType) + - " is out of range"); + return make_error<RuntimeDyldError>(("MachO X86_64 relocation type " + + Twine(RelType) + + " is out of range").str()); break; } |

