diff options
author | Fangrui Song <i@maskray.me> | 2025-07-26 11:34:09 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-07-26 11:34:10 -0700 |
commit | e9de1ee9f57c0edb5c96d15fb19ad30aa0c0e7e4 (patch) | |
tree | 1f0d77fcb35b0a5e8fcdb7c9edd809dca2128aa7 /llvm/lib/MC/MCSectionELF.cpp | |
parent | b5c7482e8bfe4649afc19fad5957259696986353 (diff) | |
download | llvm-e9de1ee9f57c0edb5c96d15fb19ad30aa0c0e7e4.zip llvm-e9de1ee9f57c0edb5c96d15fb19ad30aa0c0e7e4.tar.gz llvm-e9de1ee9f57c0edb5c96d15fb19ad30aa0c0e7e4.tar.bz2 |
MC: Move useCodeAlign from MCSection to MCAsmInfo
To centralize assembly-related virtual functions to MCAsmInfo and move
toward making MCSection non-virtual.
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index ef33f9c..cf46750 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -211,7 +211,3 @@ void MCSectionELF::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, OS << '\n'; } } - -bool MCSectionELF::useCodeAlign() const { - return getFlags() & ELF::SHF_EXECINSTR; -} |