Skip to content

Commit 1c31c68

Browse files
committed
MCSection: Remove empty printSwitchToSection overrides
1 parent f65b329 commit 1c31c68

File tree

5 files changed

+1
-29
lines changed

5 files changed

+1
-29
lines changed

llvm/include/llvm/MC/MCSection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ class LLVM_ABI MCSection {
650650

651651
virtual void printSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
652652
raw_ostream &OS,
653-
uint32_t Subsection) const = 0;
653+
uint32_t Subsection) const {}
654654

655655
/// Check whether this section is "virtual", that is has no actual object
656656
/// file contents.

llvm/include/llvm/MC/MCSectionDXContainer.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ class MCSectionDXContainer final : public MCSection {
2525

2626
MCSectionDXContainer(StringRef Name, SectionKind K, MCSymbol *Begin)
2727
: MCSection(Name, K.isText(), /*IsVirtual=*/false, Begin) {}
28-
29-
public:
30-
void printSwitchToSection(const MCAsmInfo &, const Triple &, raw_ostream &,
31-
uint32_t) const override;
3228
};
3329

3430
} // end namespace llvm

llvm/include/llvm/MC/MCSectionSPIRV.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,13 @@
1818

1919
namespace llvm {
2020

21-
class MCSymbol;
22-
2321
class MCSectionSPIRV final : public MCSection {
2422
friend class MCContext;
2523

2624
MCSectionSPIRV()
2725
: MCSection("", /*IsText=*/true, /*IsVirtual=*/false,
2826
/*Begin=*/nullptr) {}
2927
// TODO: Add StringRef Name to MCSectionSPIRV.
30-
31-
public:
32-
~MCSectionSPIRV() = default;
33-
void printSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
34-
raw_ostream &OS,
35-
uint32_t Subsection) const override {}
3628
};
3729

3830
} // end namespace llvm

llvm/lib/MC/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_llvm_component_library(LLVMMC
4444
MCSchedule.cpp
4545
MCSection.cpp
4646
MCSectionCOFF.cpp
47-
MCSectionDXContainer.cpp
4847
MCSectionELF.cpp
4948
MCSectionGOFF.cpp
5049
MCSectionMachO.cpp

llvm/lib/MC/MCSectionDXContainer.cpp

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)