mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 05:17:36 +00:00
COFF: Implement sectionContainsSymbol for relocatable files only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f1653a7ae
commit
bff6f8679a
@ -369,8 +369,14 @@ error_code COFFObjectFile::isSectionBSS(DataRefImpl Sec,
|
||||
error_code COFFObjectFile::sectionContainsSymbol(DataRefImpl Sec,
|
||||
DataRefImpl Symb,
|
||||
bool &Result) const {
|
||||
// FIXME: Unimplemented.
|
||||
Result = false;
|
||||
const coff_section *sec = toSec(Sec);
|
||||
const coff_symbol *symb = toSymb(Symb);
|
||||
const coff_section *symb_sec;
|
||||
if (error_code ec = getSection(symb->SectionNumber, symb_sec)) return ec;
|
||||
if (symb_sec == sec)
|
||||
Result = true;
|
||||
else
|
||||
Result = false;
|
||||
return object_error::success;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user