[lld] r182787 - [ELF][Reader] Kind in this context refers to File::Kind. Qualify with Reference::Kind.

Michael J. Spencer bigcheesegs at gmail.com
Tue May 28 11:43:17 PDT 2013


Author: mspencer
Date: Tue May 28 13:43:17 2013
New Revision: 182787

URL: http://llvm.org/viewvc/llvm-project?rev=182787&view=rev
Log:
[ELF][Reader] Kind in this context refers to File::Kind. Qualify with Reference::Kind.

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

Modified: lld/trunk/lib/ReaderWriter/ELF/File.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/File.h?rev=182787&r1=182786&r2=182787&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/File.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/File.h Tue May 28 13:43:17 2013
@@ -566,7 +566,7 @@ private:
               (rai.r_offset < symbol->st_value + content.size())))
           continue;
         bool isMips64EL = _objFile->isMips64EL();
-        Kind kind = (Kind) rai.getType(isMips64EL);
+        Reference::Kind kind = (Reference::Kind) rai.getType(isMips64EL);
         uint32_t symbolIndex = rai.getSymbol(isMips64EL);
         auto *ERef = new (_readerStorage)
             ELFReference<ELFT>(&rai, rai.r_offset - symbol->st_value, nullptr,
@@ -580,7 +580,7 @@ private:
         if ((ri.r_offset >= symbol->st_value) &&
             (ri.r_offset < symbol->st_value + content.size())) {
           bool isMips64EL = _objFile->isMips64EL();
-          Kind kind = (Kind) ri.getType(isMips64EL);
+          Reference::Kind kind = (Reference::Kind) ri.getType(isMips64EL);
           uint32_t symbolIndex = ri.getSymbol(isMips64EL);
           auto *ERef = new (_readerStorage)
               ELFReference<ELFT>(&ri, ri.r_offset - symbol->st_value, nullptr,





More information about the llvm-commits mailing list