summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShankar Easwaran <shankarke@gmail.com>2014-11-04 04:25:00 +0000
committerShankar Easwaran <shankarke@gmail.com>2014-11-04 04:25:00 +0000
commit4e9b8702f5e8ea361177cd1954e5a5d7a7584ffc (patch)
tree23e855bca042f41ff0af318048a1a05cfdfaf772
parentf56205bb8e9a0d0322f60901695ae746892c6c46 (diff)
downloadbcm5719-llvm-4e9b8702f5e8ea361177cd1954e5a5d7a7584ffc.tar.gz
bcm5719-llvm-4e9b8702f5e8ea361177cd1954e5a5d7a7584ffc.zip
[ELF] Fix MSVC buildbot.
For some reason, MSVC doesnot like the style. Checking to make sure this fixes the problem with the build. llvm-svn: 221234
-rw-r--r--lld/lib/ReaderWriter/ELF/SegmentChunks.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/SegmentChunks.h b/lld/lib/ReaderWriter/ELF/SegmentChunks.h
index 0f07e7d504e..68c16e84fcf 100644
--- a/lld/lib/ReaderWriter/ELF/SegmentChunks.h
+++ b/lld/lib/ReaderWriter/ELF/SegmentChunks.h
@@ -487,7 +487,7 @@ template <class ELFT> void Segment<ELFT>::assignVirtualAddress(uint64_t addr) {
(*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>::assignVirtualAddress(uint64_t addr) {
(*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>::assignVirtualAddress(uint64_t addr) {
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());
OpenPOWER on IntegriCloud