Skip to content

Commit 72d193c

Browse files
committed
WIP remove getPrivateLabelPrefix after llvm#95103
1 parent 59721f2 commit 72d193c

File tree

12 files changed

+1
-17
lines changed

12 files changed

+1
-17
lines changed

llvm/include/llvm/MC/MCAsmInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class MCAsmInfo {
626626
bool useAssignmentForEHBegin() const { return UseAssignmentForEHBegin; }
627627
bool needsLocalForSize() const { return NeedsLocalForSize; }
628628
StringRef getPrivateGlobalPrefix() const { return PrivateGlobalPrefix; }
629-
StringRef getPrivateLabelPrefix() const { return PrivateLabelPrefix; }
629+
StringRef getPrivateLabelPrefix() const { return PrivateGlobalPrefix; }
630630

631631
bool hasLinkerPrivateGlobalPrefix() const {
632632
return !LinkerPrivateGlobalPrefix.empty();

llvm/lib/MC/MCAsmInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ MCAsmInfo::MCAsmInfo() {
4444
CommentString = "#";
4545
LabelSuffix = ":";
4646
PrivateGlobalPrefix = "L";
47-
PrivateLabelPrefix = PrivateGlobalPrefix;
4847
LinkerPrivateGlobalPrefix = "";
4948
InlineAsmStart = "APP";
5049
InlineAsmEnd = "NO_APP";

llvm/lib/MC/MCAsmInfoELF.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ MCAsmInfoELF::MCAsmInfoELF() {
3232
HasIdentDirective = true;
3333
WeakRefDirective = "\t.weak\t";
3434
PrivateGlobalPrefix = ".L";
35-
PrivateLabelPrefix = ".L";
3635
}

llvm/lib/MC/MCAsmInfoGOFF.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ MCAsmInfoGOFF::MCAsmInfoGOFF() {
2222
Data64bitsDirective = "\t.quad\t";
2323
HasDotTypeDotSizeDirective = false;
2424
PrivateGlobalPrefix = "L#";
25-
PrivateLabelPrefix = "L#";
2625
ZeroDirective = "\t.space\t";
2726
}

llvm/lib/MC/MCAsmInfoWasm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ MCAsmInfoWasm::MCAsmInfoWasm() {
2121
HasNoDeadStrip = true;
2222
WeakRefDirective = "\t.weak\t";
2323
PrivateGlobalPrefix = ".L";
24-
PrivateLabelPrefix = ".L";
2524
}

llvm/lib/MC/MCAsmInfoXCOFF.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ MCAsmInfoXCOFF::MCAsmInfoXCOFF() {
2929
HasPairedDoubleQuoteStringConstants = true;
3030

3131
PrivateGlobalPrefix = "L..";
32-
PrivateLabelPrefix = "L..";
3332
SupportsQuotedNames = false;
3433
UseDotAlignForAlignment = true;
3534
UsesDwarfFileAndLocDirectives = false;

llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(bool IsILP32) {
3636
AssemblerDialect = AsmWriterVariant == Default ? Apple : AsmWriterVariant;
3737

3838
PrivateGlobalPrefix = "L";
39-
PrivateLabelPrefix = "L";
4039
SeparatorString = "%%";
4140
CommentString = ";";
4241
CalleeSaveStackSlotSize = 8;
@@ -80,7 +79,6 @@ AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(const Triple &T) {
8079

8180
CommentString = "//";
8281
PrivateGlobalPrefix = ".L";
83-
PrivateLabelPrefix = ".L";
8482
Code32Directive = ".code\t32";
8583

8684
Data16bitsDirective = "\t.hword\t";
@@ -101,7 +99,6 @@ AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(const Triple &T) {
10199

102100
AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF() {
103101
PrivateGlobalPrefix = ".L";
104-
PrivateLabelPrefix = ".L";
105102

106103
Data16bitsDirective = "\t.hword\t";
107104
Data32bitsDirective = "\t.word\t";
@@ -118,7 +115,6 @@ AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF() {
118115

119116
AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF() {
120117
PrivateGlobalPrefix = ".L";
121-
PrivateLabelPrefix = ".L";
122118

123119
Data16bitsDirective = "\t.hword\t";
124120
Data32bitsDirective = "\t.word\t";

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft() {
9191
ExceptionsType = ExceptionHandling::WinEH;
9292
WinEHEncodingType = WinEH::EncodingType::Itanium;
9393
PrivateGlobalPrefix = "$M";
94-
PrivateLabelPrefix = "$M";
9594
CommentString = "@";
9695

9796
// Conditional Thumb 4-byte instructions can have an implicit IT.
@@ -108,7 +107,6 @@ ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU() {
108107
Code16Directive = ".code\t16";
109108
Code32Directive = ".code\t32";
110109
PrivateGlobalPrefix = ".L";
111-
PrivateLabelPrefix = ".L";
112110

113111
SupportsDebugInformation = true;
114112
ExceptionsType = ExceptionHandling::WinEH;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT, const MCTargetOptions &Options) {
2222
CommentString = ";";
2323
SeparatorString = "$";
2424
PrivateGlobalPrefix = ".L";
25-
PrivateLabelPrefix = ".L";
2625
UsesELFSectionDirectiveForBSS = true;
2726
SupportsDebugInformation = true;
2827
}

llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple,
3131
PrivateGlobalPrefix = "$";
3232
else if (ABI.IsN32() || ABI.IsN64())
3333
PrivateGlobalPrefix = ".L";
34-
PrivateLabelPrefix = PrivateGlobalPrefix;
3534

3635
AlignmentIsInBytes = false;
3736
Data16bitsDirective = "\t.2byte\t";

llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ NVPTXMCAsmInfo::NVPTXMCAsmInfo(const Triple &TheTriple,
5050
SupportsSignedData = false;
5151

5252
PrivateGlobalPrefix = "$L__";
53-
PrivateLabelPrefix = PrivateGlobalPrefix;
5453

5554
// @TODO: Can we just disable this?
5655
WeakDirective = "\t// .weak\t";

llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ void X86MCAsmInfoMicrosoft::anchor() { }
118118
X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) {
119119
if (Triple.getArch() == Triple::x86_64) {
120120
PrivateGlobalPrefix = ".L";
121-
PrivateLabelPrefix = ".L";
122121
CodePointerSize = 8;
123122
WinEHEncodingType = WinEH::EncodingType::Itanium;
124123
} else {
@@ -157,7 +156,6 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
157156
"Windows and UEFI are the only supported COFF targets");
158157
if (Triple.getArch() == Triple::x86_64) {
159158
PrivateGlobalPrefix = ".L";
160-
PrivateLabelPrefix = ".L";
161159
CodePointerSize = 8;
162160
WinEHEncodingType = WinEH::EncodingType::Itanium;
163161
ExceptionsType = ExceptionHandling::WinEH;

0 commit comments

Comments
 (0)