Speculative build fix for lld on Windows

I can't access my Windows machine at the moment, but the build was breaking with:

c:\b\build\slave\crwinclanglld\build\src\third_party\llvm\tools\lld\lib\readerwriter\elf\mips\MipsTargetLayout.h(38) : error C2440: 'return' : cannot convert from 'lld:🧝:MipsGOTSection<ELFT> *' to 'lld:🧝:AtomSection<ELFT> *'
        with
        [
            ELFT=lld:🧝:Mips32ELType
        ]
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

I think this regressed caused in 234727: that the forward-declarations
of MipsGOTSection<> is not enough.

llvm-svn: 234736
This commit is contained in:
Hans Wennborg 2015-04-13 11:00:22 +00:00
parent e8fd6c8563
commit 2a76f41511
2 changed files with 2 additions and 3 deletions

View File

@ -10,6 +10,7 @@
#define LLD_READER_WRITER_ELF_MIPS_MIPS_SECTION_CHUNKS_H
#include "MipsReginfo.h"
#include "SectionChunks.h"
namespace lld {
namespace elf {

View File

@ -9,14 +9,12 @@
#ifndef LLD_READER_WRITER_ELF_MIPS_MIPS_TARGET_LAYOUT_H
#define LLD_READER_WRITER_ELF_MIPS_MIPS_TARGET_LAYOUT_H
#include "MipsSectionChunks.h"
#include "TargetLayout.h"
namespace lld {
namespace elf {
template <typename ELFT> class MipsGOTSection;
template <typename ELFT> class MipsPLTSection;
template <typename ELFT> class MipsRelocationTable;
class MipsLinkingContext;
/// \brief TargetLayout for Mips