File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
llvm/lib/Target/ARM/MCTargetDesc Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1284,14 +1284,11 @@ void ARMELFStreamer::emitCantUnwind() { CantUnwind = true; }
1284
1284
// Add the R_ARM_NONE fixup at the same position
1285
1285
void ARMELFStreamer::EmitPersonalityFixup (StringRef Name) {
1286
1286
const MCSymbol *PersonalitySym = getContext ().getOrCreateSymbol (Name);
1287
+ visitUsedSymbol (*PersonalitySym);
1287
1288
1288
1289
const MCSymbolRefExpr *PersonalityRef =
1289
1290
MCSymbolRefExpr::create (PersonalitySym, ARM::S_ARM_NONE, getContext ());
1290
-
1291
- visitUsedExpr (*PersonalityRef);
1292
- MCFragment *DF = getCurrentFragment ();
1293
- DF->addFixup (
1294
- MCFixup::create (DF->getContents ().size (), PersonalityRef, FK_Data_4));
1291
+ addFixup (PersonalityRef, FK_Data_4);
1295
1292
}
1296
1293
1297
1294
void ARMELFStreamer::FlushPendingOffset () {
You can’t perform that action at this time.
0 commit comments