Skip to content

Commit 492b521

Browse files
committed
MCSection: Simplify useCodeAlign
1 parent 3aeab92 commit 492b521

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

llvm/include/llvm/MC/MCSection.h

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

655655
/// Return true if a .align directive should use "optimized nops" to fill
656656
/// instead of 0s.
657-
virtual bool useCodeAlign() const = 0;
657+
virtual bool useCodeAlign() const { return false; }
658658

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

llvm/include/llvm/MC/MCSectionDXContainer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class MCSectionDXContainer final : public MCSection {
2929
public:
3030
void printSwitchToSection(const MCAsmInfo &, const Triple &, raw_ostream &,
3131
uint32_t) const override;
32-
bool useCodeAlign() const override { return false; }
3332
};
3433

3534
} // end namespace llvm

llvm/include/llvm/MC/MCSectionGOFF.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ class LLVM_ABI MCSectionGOFF final : public MCSection {
7777
raw_ostream &OS,
7878
uint32_t Subsection) const override;
7979

80-
bool useCodeAlign() const override { return false; }
81-
8280
// Return the parent section.
8381
MCSectionGOFF *getParent() const { return Parent; }
8482

llvm/include/llvm/MC/MCSectionSPIRV.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class MCSectionSPIRV final : public MCSection {
3333
void printSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
3434
raw_ostream &OS,
3535
uint32_t Subsection) const override {}
36-
bool useCodeAlign() const override { return false; }
3736
};
3837

3938
} // end namespace llvm

0 commit comments

Comments
 (0)