Skip to content

Commit 78bac7f

Browse files
committed
[MC] Remove unneeded getMemtagAttr()
1 parent 0b84d72 commit 78bac7f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

llvm/include/llvm/MC/MCAsmInfo.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ class MCAsmInfo {
356356
/// protected visibility. Defaults to MCSA_Protected
357357
MCSymbolAttr ProtectedVisibilityAttr = MCSA_Protected;
358358

359-
MCSymbolAttr MemtagAttr = MCSA_Memtag;
360-
361359
//===--- Dwarf Emission Directives -----------------------------------===//
362360

363361
/// True if target supports emission of debugging information. Defaults to
@@ -635,8 +633,6 @@ class MCAsmInfo {
635633
return ProtectedVisibilityAttr;
636634
}
637635

638-
MCSymbolAttr getMemtagAttr() const { return MemtagAttr; }
639-
640636
bool doesSupportDebugInformation() const { return SupportsDebugInformation; }
641637

642638
ExceptionHandling getExceptionHandlingType() const { return ExceptionsType; }

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable *GV) {
760760
OutContext.reportError(SMLoc(),
761761
"tagged symbols (-fsanitize=memtag-globals) are "
762762
"only supported on AArch64 Android");
763-
OutStreamer->emitSymbolAttribute(EmittedSym, MAI->getMemtagAttr());
763+
OutStreamer->emitSymbolAttribute(EmittedSym, MCSA_Memtag);
764764
}
765765

766766
if (!GV->hasInitializer()) // External globals require no extra code.

0 commit comments

Comments
 (0)