Revert "[AIX][XCOFF] emit symbol visibility for xcoff object file." · llvm/llvm-project@6923b0a (original) (raw)

`@@ -69,11 +69,6 @@ struct Symbol {

`

69

69

` XCOFF::StorageClass getStorageClass() const {

`

70

70

`return MCSym->getStorageClass();

`

71

71

` }

`

72

``

-

73

``

`-

XCOFF::VisibilityType getVisibilityType() const {

`

74

``

`-

return MCSym->getVisibilityType();

`

75

``

`-

}

`

76

``

-

77

72

` StringRef getSymbolTableName() const { return MCSym->getSymbolTableName(); }

`

78

73

`Symbol(const MCSymbolXCOFF *MCSym) : MCSym(MCSym), SymbolTableIndex(-1) {}

`

79

74

`};

`

`@@ -574,12 +569,13 @@ void XCOFFObjectWriter::writeSymbolTableEntryForCsectMemberLabel(

`

574

569

` W.write(CSectionRef.Address + SymbolOffset);

`

575

570

` W.write(SectionIndex);

`

576

571

`// Basic/Derived type. See the description of the n_type field for symbol

`

577

``

`-

// table entries for a detailed description. Since we support visibility, and

`

578

``

`-

// all other bits are either optionally set or reserved, we only set bits 0-3

`

579

``

`-

// for symbol's visibility and leave other bits to zero.

`

``

572

`+

// table entries for a detailed description. Since we don't yet support

`

``

573

`+

// visibility, and all other bits are either optionally set or reserved, this

`

``

574

`+

// is always zero.

`

``

575

`+

// TODO FIXME How to assert a symbol's visibilty is default?

`

580

576

`// TODO Set the function indicator (bit 10, 0x0020) for functions

`

581

577

`// when debugging is enabled.

`

582

``

`-

W.write(SymbolRef.getVisibilityType());

`

``

578

`+

W.write(0);

`

583

579

` W.write(SymbolRef.getStorageClass());

`

584

580

`// Always 1 aux entry for now.

`

585

581

` W.write(1);

`

`@@ -610,12 +606,13 @@ void XCOFFObjectWriter::writeSymbolTableEntryForControlSection(

`

610

606

`// n_scnum

`

611

607

` W.write(SectionIndex);

`

612

608

`// Basic/Derived type. See the description of the n_type field for symbol

`

613

``

`-

// table entries for a detailed description. Since we support visibility, and

`

614

``

`-

// all other bits are either optionally set or reserved, we only set bits 0-3

`

615

``

`-

// for symbol's visibility and leave other bits to zero.

`

``

609

`+

// table entries for a detailed description. Since we don't yet support

`

``

610

`+

// visibility, and all other bits are either optionally set or reserved, this

`

``

611

`+

// is always zero.

`

``

612

`+

// TODO FIXME How to assert a symbol's visibilty is default?

`

616

613

`// TODO Set the function indicator (bit 10, 0x0020) for functions

`

617

614

`// when debugging is enabled.

`

618

``

`-

W.write(CSectionRef.MCCsect->getVisibilityType());

`

``

615

`+

W.write(0);

`

619

616

`// n_sclass

`

620

617

` W.write(StorageClass);

`

621

618

`// Always 1 aux entry for now.

`