[lld] r221234 - [ELF] Fix MSVC buildbot.

Shankar Easwaran shankarke at gmail.com
Mon Nov 3 20:25:00 PST 2014


Author: shankare
Date: Mon Nov  3 22:25:00 2014
New Revision: 221234

URL: http://llvm.org/viewvc/llvm-project?rev=221234&view=rev
Log:
[ELF] Fix MSVC buildbot.

For some reason, MSVC doesnot like the style.

Checking to make sure this fixes the problem with the build.

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

Modified: lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h?rev=221234&r1=221233&r2=221234&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h Mon Nov  3 22:25:00 2014
@@ -487,7 +487,7 @@ template <class ELFT> void Segment<ELFT>
       (*si)->setVirtualAddr(curSliceAddress);
 
       // Handle TLS.
-      if (auto section = dyn_cast<AtomSection<ELFT>>(*si)) {
+      if (auto section = dyn_cast<Section<ELFT>>(*si)) {
         if (section->getSegmentType() == llvm::ELF::PT_TLS) {
           tlsStartAddr =
               llvm::RoundUpToAlignment(tlsStartAddr, (*si)->align2());
@@ -542,7 +542,7 @@ template <class ELFT> void Segment<ELFT>
         (*si)->setVirtualAddr(curSliceAddress);
         startSectionIter = si;
         startSection = currSection;
-        if (auto section = dyn_cast<AtomSection<ELFT>>(*si))
+        if (auto section = dyn_cast<Section<ELFT>>(*si))
           section->assignVirtualAddress(newAddr);
         curSliceSize = newAddr - curSliceAddress + (*si)->memSize();
         sliceAlign = (*si)->align2();
@@ -551,7 +551,7 @@ template <class ELFT> void Segment<ELFT>
           sliceAlign = (*si)->align2();
         (*si)->setVirtualAddr(newAddr);
         // Handle TLS.
-        if (auto section = dyn_cast<AtomSection<ELFT>>(*si)) {
+        if (auto section = dyn_cast<Section<ELFT>>(*si)) {
           if (section->getSegmentType() == llvm::ELF::PT_TLS) {
             tlsStartAddr =
                 llvm::RoundUpToAlignment(tlsStartAddr, (*si)->align2());





More information about the llvm-commits mailing list