From 4277c2d6bf6d9f8273a0ffbdd405380b3232b7ec Mon Sep 17 00:00:00 2001 From: Shankar Easwaran Date: Fri, 25 Jan 2013 15:19:02 +0000 Subject: [PATCH] change all occurences of File to FileELF llvm-svn: 173449 --- lld/lib/ReaderWriter/ELF/AtomsELF.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/lib/ReaderWriter/ELF/AtomsELF.h b/lld/lib/ReaderWriter/ELF/AtomsELF.h index 58f2fa6..b725fc9 100644 --- a/lld/lib/ReaderWriter/ELF/AtomsELF.h +++ b/lld/lib/ReaderWriter/ELF/AtomsELF.h @@ -123,7 +123,7 @@ public: const Elf_Sym *symbol) : _owningFile(file), _name(name), _symbol(symbol) {} - virtual const class File &file() const { + virtual const class FileELF &file() const { return _owningFile; } @@ -142,7 +142,7 @@ public: } private: - const File &_owningFile; + const FileELF &_owningFile; llvm::StringRef _name; const Elf_Sym *_symbol; }; @@ -155,7 +155,7 @@ class ELFDefinedAtom LLVM_FINAL : public DefinedAtom { typedef llvm::object::Elf_Shdr_Impl Elf_Shdr; public: - ELFDefinedAtom(const File &file, + ELFDefinedAtom(const FileELF &file, llvm::StringRef symbolName, llvm::StringRef sectionName, const Elf_Sym *symbol, @@ -178,7 +178,7 @@ public: _ordinal = ++orderNumber; } - virtual const class File &file() const { + virtual const class FileELF &file() const { return _owningFile; } @@ -233,7 +233,7 @@ public: if (_symbol->st_shndx > llvm::ELF::SHN_LOPROC && _symbol->st_shndx < llvm::ELF::SHN_HIPROC) { const ELFTargetInfo &eti = - static_cast(_owningFile.getTargetInfo()); + (_owningFile.getTargetInfo()); elf::ELFTargetHandler &elfTargetHandler = eti.getTargetHandler(); elf::ELFTargetAtomHandler &elfAtomHandler = @@ -406,7 +406,7 @@ public: private: - const File &_owningFile; + const FileELF &_owningFile; llvm::StringRef _symbolName; llvm::StringRef _sectionName; const Elf_Sym *_symbol; -- 2.7.4