File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1524,7 +1524,7 @@ void RelocationScanner::scanOne(typename Relocs<RelTy>::const_iterator &i) {
15241524 return ;
15251525
15261526 RelExpr expr;
1527- if (rv_vendor.empty ()) {
1527+ if (LLVM_LIKELY ( rv_vendor.empty () )) {
15281528 expr = ctx.target ->getRelExpr (type, sym, sec->content ().data () + offset);
15291529 } else {
15301530 expr = ctx.target ->getVendorRelExpr (
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class TargetInfo {
3535 const uint8_t *loc) const = 0;
3636 virtual RelExpr getVendorRelExpr (RelType type, const Symbol &s,
3737 const uint8_t *loc, StringRef vendor) const {
38+ Err (ctx) << " target doesn't support vendor-specific relocations" ;
3839 return R_NONE;
3940 };
4041 virtual RelType getDynRel (RelType type) const { return 0 ; }
You can’t perform that action at this time.
0 commit comments