forked from OSchip/llvm-project
[Mips] Rollback explicit instantiation of MipsELFFile template class
This is a follow-up to r234728 and r234729. It looks like explicit instantiation of `MipsELFFile` is redundant and triggers Visual C++ warning. llvm-svn: 234756
This commit is contained in:
parent
a835555e40
commit
44e904581d
lld/lib/ReaderWriter/ELF/Mips
|
@ -1,6 +1,5 @@
|
||||||
add_llvm_library(lldMipsELFTarget
|
add_llvm_library(lldMipsELFTarget
|
||||||
MipsCtorsOrderPass.cpp
|
MipsCtorsOrderPass.cpp
|
||||||
MipsELFFile.cpp
|
|
||||||
MipsELFFlagsMerger.cpp
|
MipsELFFlagsMerger.cpp
|
||||||
MipsLinkingContext.cpp
|
MipsLinkingContext.cpp
|
||||||
MipsRelocationHandler.cpp
|
MipsRelocationHandler.cpp
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
//===- lib/ReaderWriter/ELF/Mips/MipsELFFile.cpp --------------------------===//
|
|
||||||
//
|
|
||||||
// The LLVM Linker
|
|
||||||
//
|
|
||||||
// This file is distributed under the University of Illinois Open Source
|
|
||||||
// License. See LICENSE.TXT for details.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#include "MipsELFFile.h"
|
|
||||||
|
|
||||||
namespace lld {
|
|
||||||
namespace elf {
|
|
||||||
|
|
||||||
MIPSFILE_INSTANTIATION(Mips32ELType)
|
|
||||||
MIPSFILE_INSTANTIATION(Mips64ELType)
|
|
||||||
MIPSFILE_INSTANTIATION(Mips32BEType)
|
|
||||||
MIPSFILE_INSTANTIATION(Mips64BEType)
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -289,21 +289,6 @@ private:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define EXTERN_MIPSFILE_INSTANTIATION(T) \
|
|
||||||
EXTERN_TEMPLATE_INSTANTIATION(class MipsELFDefinedAtom<T>); \
|
|
||||||
EXTERN_TEMPLATE_INSTANTIATION(class MipsELFReference<T>); \
|
|
||||||
EXTERN_TEMPLATE_INSTANTIATION(class MipsELFFile<T>);
|
|
||||||
|
|
||||||
#define MIPSFILE_INSTANTIATION(T) \
|
|
||||||
TEMPLATE_INSTANTIATION(class MipsELFDefinedAtom<T>); \
|
|
||||||
TEMPLATE_INSTANTIATION(class MipsELFReference<T>); \
|
|
||||||
TEMPLATE_INSTANTIATION(class MipsELFFile<T>);
|
|
||||||
|
|
||||||
EXTERN_MIPSFILE_INSTANTIATION(Mips32ELType)
|
|
||||||
EXTERN_MIPSFILE_INSTANTIATION(Mips64ELType)
|
|
||||||
EXTERN_MIPSFILE_INSTANTIATION(Mips32BEType)
|
|
||||||
EXTERN_MIPSFILE_INSTANTIATION(Mips64BEType)
|
|
||||||
|
|
||||||
} // elf
|
} // elf
|
||||||
} // lld
|
} // lld
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue