Skip to content

Commit 95202ab

Browse files
committed
MC: Remove unused MCFixupKindInfo::FKF_Constant
This was an ARM workaround, which has been removed by llvm#76574
1 parent dba030e commit 95202ab

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

llvm/include/llvm/MC/MCFixupKindInfo.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ struct MCFixupKindInfo {
2525

2626
/// Should this fixup be evaluated in a target dependent manner?
2727
FKF_IsTarget = (1 << 2),
28-
29-
/// This fixup kind should be resolved if defined.
30-
/// FIXME This is a workaround because we don't support certain ARM
31-
/// relocation types. This flag should eventually be removed.
32-
FKF_Constant = 1 << 3,
3328
};
3429

3530
/// A target specific name for the fixup kind. The names will be unique for

llvm/lib/MC/MCAssembler.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,8 @@ bool MCAssembler::evaluateFixup(const MCFixup &Fixup, const MCFragment *DF,
184184
Value -= Offset;
185185

186186
if (Add && !Sub && !Add->isUndefined() && !Add->isAbsolute()) {
187-
IsResolved = (FixupFlags & MCFixupKindInfo::FKF_Constant) ||
188-
getWriter().isSymbolRefDifferenceFullyResolvedImpl(
189-
*this, *Add, *DF, false, true);
187+
IsResolved = getWriter().isSymbolRefDifferenceFullyResolvedImpl(
188+
*this, *Add, *DF, false, true);
190189
}
191190
} else {
192191
IsResolved = Target.isAbsolute();

0 commit comments

Comments
 (0)