mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Handle visibility printing with all generality. Remove bunch of duplicate code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -164,6 +164,8 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
break;
|
||||
}
|
||||
|
||||
printVisibility(CurrentFnName, F->getVisibility());
|
||||
|
||||
O << "\t.ent " << CurrentFnName << "\n";
|
||||
|
||||
O << CurrentFnName << ":\n";
|
||||
@@ -221,8 +223,7 @@ void AlphaAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
|
||||
SwitchToDataSection(SectionName.c_str());
|
||||
|
||||
// 1: Check visibility
|
||||
if (GVar->hasHiddenVisibility())
|
||||
O << TAI->getHiddenDirective() << name << "\n";
|
||||
printVisibility(name, GVar->getVisibility());
|
||||
|
||||
// 2: Kind
|
||||
switch (GVar->getLinkage()) {
|
||||
|
Reference in New Issue
Block a user