File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/lib/ExecutionEngine/JITLink Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ class ELFLinkGraphBuilder_i386 : public ELFLinkGraphBuilder<object::ELF32LE> {
114
114
private:
115
115
using ELFT = object::ELF32LE;
116
116
117
- static Expected<i386::EdgeKind_i386> getRelocationKind (const uint32_t Type) {
117
+ Expected<i386::EdgeKind_i386> getRelocationKind (const uint32_t Type) {
118
118
using namespace i386 ;
119
119
switch (Type) {
120
120
case ELF::R_386_NONE:
@@ -137,8 +137,9 @@ class ELFLinkGraphBuilder_i386 : public ELFLinkGraphBuilder<object::ELF32LE> {
137
137
return EdgeKind_i386::BranchPCRel32;
138
138
}
139
139
140
- return make_error<JITLinkError>(" Unsupported i386 relocation:" +
141
- formatv (" {0:d}" , Type));
140
+ return make_error<JITLinkError>(
141
+ " In " + G->getName () + " : Unsupported i386 relocation type " +
142
+ object::getELFRelocationTypeName (ELF::EM_386, Type));
142
143
}
143
144
144
145
Error addRelocations () override {
You can’t perform that action at this time.
0 commit comments