[PATCH] D50995: [COFF] Expose a easier helper function for getting names for relocation types
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 20 13:56:31 PDT 2018
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
================
Comment at: lib/Object/COFFObjectFile.cpp:1277-1278
+ const coff_relocation *Reloc = toRel(Rel);
+ StringRef Res = getRelocationTypeName(Reloc->Type);
+ Result.append(Res.begin(), Res.end());
+}
----------------
Does `Result += getRelocationTypeName(Reloc->Type);` work?
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D50995
More information about the llvm-commits
mailing list