mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[BOLT] Make the methods isText/isData more robust
Summary: Make the methods isText/isData work for MachO. (cherry picked from FBD19849460)
This commit is contained in:
committed by
Maksim Panchenko
parent
c3c4b15a2e
commit
d5b8fc8fbe
@@ -24,6 +24,10 @@ extern cl::opt<bool> PrintRelocations;
|
||||
extern cl::opt<bool> HotData;
|
||||
}
|
||||
|
||||
bool BinarySection::isELF() const {
|
||||
return BC.Ctx->getObjectFileInfo()->getTargetTriple().isOSBinFormatELF();
|
||||
}
|
||||
|
||||
uint64_t
|
||||
BinarySection::hash(const BinaryData &BD,
|
||||
std::map<const BinaryData *, uint64_t> &Cache) const {
|
||||
|
||||
Reference in New Issue
Block a user