mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 01:25:49 +00:00
Fix warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -117,7 +117,7 @@ error_code COFFObjectFile::getSymbolNext(DataRefImpl Symb,
|
|||||||
error_code COFFObjectFile::getSymbolAddress(DataRefImpl Symb,
|
error_code COFFObjectFile::getSymbolAddress(DataRefImpl Symb,
|
||||||
uint64_t &Result) const {
|
uint64_t &Result) const {
|
||||||
const coff_symbol *symb = toSymb(Symb);
|
const coff_symbol *symb = toSymb(Symb);
|
||||||
const coff_section *Section;
|
const coff_section *Section = NULL;
|
||||||
if (error_code ec = getSection(symb->SectionNumber, Section))
|
if (error_code ec = getSection(symb->SectionNumber, Section))
|
||||||
return ec;
|
return ec;
|
||||||
char Type;
|
char Type;
|
||||||
@@ -138,7 +138,7 @@ error_code COFFObjectFile::getSymbolSize(DataRefImpl Symb,
|
|||||||
// in the same section as this symbol, and looking for either the next
|
// in the same section as this symbol, and looking for either the next
|
||||||
// symbol, or the end of the section.
|
// symbol, or the end of the section.
|
||||||
const coff_symbol *symb = toSymb(Symb);
|
const coff_symbol *symb = toSymb(Symb);
|
||||||
const coff_section *Section;
|
const coff_section *Section = NULL;
|
||||||
if (error_code ec = getSection(symb->SectionNumber, Section))
|
if (error_code ec = getSection(symb->SectionNumber, Section))
|
||||||
return ec;
|
return ec;
|
||||||
char Type;
|
char Type;
|
||||||
@@ -171,7 +171,7 @@ error_code COFFObjectFile::getSymbolNMTypeChar(DataRefImpl Symb,
|
|||||||
|
|
||||||
uint32_t Characteristics = 0;
|
uint32_t Characteristics = 0;
|
||||||
if (symb->SectionNumber > 0) {
|
if (symb->SectionNumber > 0) {
|
||||||
const coff_section *Section;
|
const coff_section *Section = NULL;
|
||||||
if (error_code ec = getSection(symb->SectionNumber, Section))
|
if (error_code ec = getSection(symb->SectionNumber, Section))
|
||||||
return ec;
|
return ec;
|
||||||
Characteristics = Section->Characteristics;
|
Characteristics = Section->Characteristics;
|
||||||
|
Reference in New Issue
Block a user