diff options
author | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2025-03-18 14:00:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-18 14:00:34 +0100 |
commit | 84e44ae6b7319b7f02156d8ca12548f225299e91 (patch) | |
tree | 814e66b73332a943bca5aa8bb6b4b698a4de8c30 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 428b320bf31329559ee9f8dd888be4f86cfa68e8 (diff) | |
download | llvm-84e44ae6b7319b7f02156d8ca12548f225299e91.zip llvm-84e44ae6b7319b7f02156d8ca12548f225299e91.tar.gz llvm-84e44ae6b7319b7f02156d8ca12548f225299e91.tar.bz2 |
[llvm-objdump] Pass MCSubtargetInfo to findPltEntries (NFC) (#131773)
It allows access to subtarget features, collected in llvm-objdump.cpp,
from findPltEntries, which will be used in
https://github.com/llvm/llvm-project/pull/130764.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/ELFObjectFile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp index d0897c6..21cb77e 100644 --- a/llvm/lib/Object/ELFObjectFile.cpp +++ b/llvm/lib/Object/ELFObjectFile.cpp @@ -778,7 +778,8 @@ void ELFObjectFileBase::setARMSubArch(Triple &TheTriple) const { TheTriple.setArchName(Triple); } -std::vector<ELFPltEntry> ELFObjectFileBase::getPltEntries() const { +std::vector<ELFPltEntry> +ELFObjectFileBase::getPltEntries(const MCSubtargetInfo &STI) const { std::string Err; const auto Triple = makeTriple(); const auto *T = TargetRegistry::lookupTarget(Triple, Err); @@ -836,7 +837,7 @@ std::vector<ELFPltEntry> ELFObjectFileBase::getPltEntries() const { llvm::append_range( PltEntries, MIA->findPltEntries(Section.getAddress(), - arrayRefFromStringRef(*PltContents), Triple)); + arrayRefFromStringRef(*PltContents), STI)); } } |