[llvm-commits] [lld] r173449 - /lld/trunk/lib/ReaderWriter/ELF/AtomsELF.h

Shankar Easwaran shankare at codeaurora.org
Fri Jan 25 07:19:02 PST 2013


Author: shankare
Date: Fri Jan 25 09:19:02 2013
New Revision: 173449

URL: http://llvm.org/viewvc/llvm-project?rev=173449&view=rev
Log:
change all occurences of File to FileELF

Modified:
    lld/trunk/lib/ReaderWriter/ELF/AtomsELF.h

Modified: lld/trunk/lib/ReaderWriter/ELF/AtomsELF.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AtomsELF.h?rev=173449&r1=173448&r2=173449&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AtomsELF.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AtomsELF.h Fri Jan 25 09:19:02 2013
@@ -123,7 +123,7 @@
                    const Elf_Sym *symbol)
       : _owningFile(file), _name(name), _symbol(symbol) {}
 
-  virtual const class File &file() const {
+  virtual const class FileELF<ELFT> &file() const {
     return _owningFile;
   }
 
@@ -142,7 +142,7 @@
   }
 
 private:
-  const File &_owningFile;
+  const FileELF<ELFT> &_owningFile;
   llvm::StringRef _name;
   const Elf_Sym *_symbol;
 };
@@ -155,7 +155,7 @@
   typedef llvm::object::Elf_Shdr_Impl<ELFT> Elf_Shdr;
 
 public:
-  ELFDefinedAtom(const File &file,
+  ELFDefinedAtom(const FileELF<ELFT> &file,
                  llvm::StringRef symbolName,
                  llvm::StringRef sectionName,
                  const Elf_Sym *symbol,
@@ -178,7 +178,7 @@
     _ordinal = ++orderNumber;
   }
 
-  virtual const class File &file() const {
+  virtual const class FileELF<ELFT> &file() const {
     return _owningFile;
   }
 
@@ -233,7 +233,7 @@
     if (_symbol->st_shndx > llvm::ELF::SHN_LOPROC &&
         _symbol->st_shndx < llvm::ELF::SHN_HIPROC) {
       const ELFTargetInfo &eti =
-          static_cast<const ELFTargetInfo &>(_owningFile.getTargetInfo());
+          (_owningFile.getTargetInfo());
       elf::ELFTargetHandler<ELFT> &elfTargetHandler =
           eti.getTargetHandler<ELFT>();
       elf::ELFTargetAtomHandler<ELFT> &elfAtomHandler =
@@ -406,7 +406,7 @@
 
 private:
 
-  const File &_owningFile;
+  const FileELF<ELFT> &_owningFile;
   llvm::StringRef _symbolName;
   llvm::StringRef _sectionName;
   const Elf_Sym *_symbol;





More information about the llvm-commits mailing list