Skip to content

Commit 0739ce8

Browse files
committed
[MC] Port initializeVariantKinds to ARM COFF and SystemZ GOFF
... so that they use the target-specific variantKindDescs instead of the generic MCExpr one (which will go away as it's error-prone).
1 parent e93cd15 commit 0739ce8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft() {
129129

130130
// Conditional Thumb 4-byte instructions can have an implicit IT.
131131
MaxInstLength = 6;
132+
133+
initializeVariantKinds(variantKindDescs);
132134
}
133135

134136
void ARMCOFFMCAsmInfoGNU::anchor() { }

llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(const Triple &TT) {
5353
IsLittleEndian = false;
5454
MaxInstLength = 6;
5555
SupportsDebugInformation = true;
56+
57+
initializeVariantKinds(variantKindDescs);
5658
}
5759

5860
bool SystemZMCAsmInfoGOFF::isAcceptableChar(char C) const {

0 commit comments

Comments
 (0)