[COFF] Avoid forward declaring StringSet, fix build
This should fix the build after SVN r316178, which worked fine on GCC 5.4, but failed on clang with errors like these: MinGW.h:26:3: error: too few template arguments for class template 'StringSet' StringSet<> ExcludeSymbols; ^ lld/Common/LLVM.h:28:30: note: template is declared here template<typename T> class StringSet; Don't forward declare and add the using directive in the main lld/Common/LLVM.h header, but just qualify the class name in MinGW.h instead. llvm-svn: 316180
This commit is contained in:
parent
769095bd07
commit
3af5ffb538
|
@ -23,9 +23,9 @@ class AutoExporter {
|
|||
public:
|
||||
AutoExporter();
|
||||
|
||||
StringSet<> ExcludeSymbols;
|
||||
StringSet<> ExcludeLibs;
|
||||
StringSet<> ExcludeObjects;
|
||||
llvm::StringSet<> ExcludeSymbols;
|
||||
llvm::StringSet<> ExcludeLibs;
|
||||
llvm::StringSet<> ExcludeObjects;
|
||||
|
||||
bool shouldExport(Defined *Sym) const;
|
||||
};
|
||||
|
|
|
@ -25,7 +25,6 @@ namespace llvm {
|
|||
// ADT's.
|
||||
class Error;
|
||||
class StringRef;
|
||||
template<typename T> class StringSet;
|
||||
class Twine;
|
||||
class MemoryBuffer;
|
||||
class MemoryBufferRef;
|
||||
|
@ -58,7 +57,6 @@ namespace lld {
|
|||
// ADT's.
|
||||
using llvm::Error;
|
||||
using llvm::StringRef;
|
||||
using llvm::StringSet;
|
||||
using llvm::Twine;
|
||||
using llvm::MemoryBuffer;
|
||||
using llvm::MemoryBufferRef;
|
||||
|
|
Loading…
Reference in New Issue