mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 11:55:49 +00:00
Try to fix Windows lld build.
llvm\tools\lld\ELF\MarkLive.cpp(49): error C2872: 'ObjectFile': ambiguous symbol llvm\tools\lld\elf\InputFiles.h(100): note: could be 'lld:🧝:ObjectFile' llvm\include\llvm/Object/IRObjectFile.h(26): note: or 'llvm::object::ObjectFile' llvm\tools\lld\ELF\MarkLive.cpp(133): note: see reference to function template instantiation 'void forEachSuccessor<ELFT>(lld:🧝:InputSection<ELFT> *, std::function<void (lld:🧝:InputSectionBase<ELFT> *)>)' being compiled with [ ELFT=llvm::object::ELF32LE ] llvm\tools\lld\ELF\MarkLive.cpp(136): note: see reference to function template instantiation 'void lld:🧝:markLive<llvm::object::ELF32LE>(lld:🧝:SymbolTable<llvm::object::ELF32LE> *) being compiled llvm-svn: 267161
This commit is contained in:
parent
2339f6f5a3
commit
104871f433
@ -46,7 +46,7 @@ static void forEachSuccessor(InputSection<ELFT> *Sec,
|
||||
typedef typename ELFT::Rela Elf_Rela;
|
||||
typedef typename ELFT::Shdr Elf_Shdr;
|
||||
|
||||
ObjectFile<ELFT> *File = Sec->getFile();
|
||||
lld::elf::ObjectFile<ELFT> *File = Sec->getFile();
|
||||
ELFFile<ELFT> &Obj = File->getObj();
|
||||
for (const Elf_Shdr *RelSec : Sec->RelocSections) {
|
||||
if (RelSec->sh_type == SHT_RELA) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user