Skip to content

Commit e642ed8

Browse files
committed
[AVR] Remove initializeVariantKinds
AVR doesn't use @Reloc or ARM-style sym(reloc) supported by AsmParser.cpp. Instead, AVRAsmParser parses the operator (e.g. pm_lo8(...))
1 parent a4976ca commit e642ed8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,11 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "AVRMCAsmInfo.h"
14-
#include "AVRMCExpr.h"
1514
#include "llvm/MC/MCExpr.h"
1615
#include "llvm/TargetParser/Triple.h"
1716

1817
using namespace llvm;
1918

20-
const MCAsmInfo::VariantKindDesc variantKindDescs[] = {
21-
{AVRMCExpr::VK_DIFF16, "diff16"}, {AVRMCExpr::VK_DIFF32, "diff32"},
22-
{AVRMCExpr::VK_DIFF8, "diff8"}, {AVRMCExpr::VK_HI8, "hi8"},
23-
{AVRMCExpr::VK_HH8, "hlo8"}, {AVRMCExpr::VK_LO8, "lo8"},
24-
{AVRMCExpr::VK_PM, "pm"},
25-
};
26-
2719
AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options) {
2820
CodePointerSize = 2;
2921
CalleeSaveStackSlotSize = 2;
@@ -33,5 +25,4 @@ AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options) {
3325
PrivateLabelPrefix = ".L";
3426
UsesELFSectionDirectiveForBSS = true;
3527
SupportsDebugInformation = true;
36-
initializeVariantKinds(variantKindDescs);
3728
}

0 commit comments

Comments
 (0)