mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[yaml2obj] Support numeric indexes to create invalid files. Will be used by lld test.
llvm-svn: 246233
This commit is contained in:
parent
d9149d4cf3
commit
78bdd69848
@ -222,10 +222,12 @@ bool ELFState<ELFT>::initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
|
||||
|
||||
unsigned Index;
|
||||
if (SN2I.lookup(S->Info, Index)) {
|
||||
if (S->Info.getAsInteger(0, Index)) {
|
||||
errs() << "error: Unknown section referenced: '" << S->Info
|
||||
<< "' at YAML section '" << S->Name << "'.\n";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
SHeader.sh_info = Index;
|
||||
|
||||
if (!writeSectionContent(SHeader, *S, CBA))
|
||||
|
Loading…
Reference in New Issue
Block a user