Skip to content

Commit d9489fd

Browse files
committed
AVR,BPF: Derive from MCAsmInfoELF
instead of MCAsmInfo. MCAsmInfo is derived by object file format MCAsmInfo.
1 parent 82e4b83 commit d9489fd

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options) {
2424
CalleeSaveStackSlotSize = 2;
2525
CommentString = ";";
2626
SeparatorString = "$";
27-
PrivateGlobalPrefix = ".L";
28-
PrivateLabelPrefix = ".L";
2927
UsesELFSectionDirectiveForBSS = true;
3028
SupportsDebugInformation = true;
3129
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
#define LLVM_AVR_ASM_INFO_H
1515

1616
#include "MCTargetDesc/AVRMCExpr.h"
17-
#include "llvm/MC/MCAsmInfo.h"
17+
#include "llvm/MC/MCAsmInfoELF.h"
1818
#include "llvm/MC/MCExpr.h"
1919

2020
namespace llvm {
2121

2222
class Triple;
2323

2424
/// Specifies the format of AVR assembly files.
25-
class AVRMCAsmInfo : public MCAsmInfo {
25+
class AVRMCAsmInfo : public MCAsmInfoELF {
2626
public:
2727
explicit AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options);
2828
void printSpecifierExpr(raw_ostream &OS,

llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@
1313
#ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
1414
#define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFMCASMINFO_H
1515

16-
#include "llvm/MC/MCAsmInfo.h"
16+
#include "llvm/MC/MCAsmInfoELF.h"
1717
#include "llvm/TargetParser/Triple.h"
1818

1919
namespace llvm {
2020

21-
class BPFMCAsmInfo : public MCAsmInfo {
21+
class BPFMCAsmInfo : public MCAsmInfoELF {
2222
public:
2323
explicit BPFMCAsmInfo(const Triple &TT, const MCTargetOptions &Options) {
2424
if (TT.getArch() == Triple::bpfeb)
2525
IsLittleEndian = false;
2626

2727
PrivateGlobalPrefix = ".L";
28+
PrivateLabelPrefix = "L";
2829
WeakRefDirective = "\t.weak\t";
2930

3031
UsesELFSectionDirectiveForBSS = true;

0 commit comments

Comments
 (0)