Details
Diff Detail
Event Timeline
COFF/MinGW.h | ||
---|---|---|
22 | LLVM.h doesn't include or forward-declare StringSet, but if I add it there, I can get this working (as long as any caller trying to instantiate the AutoExporter class has pulled in the proper definition of StringSet). |
Removed the whole-file namespace in MinGW.cpp, removed manual includes of ADT types in MinGW.h and added a forward declaration to LLVM.h.
FWIW, the StringSet forward declaration turned out to fail on clang while it worked fine when built with GCC, see e.g. http://lab.llvm.org:8011/builders/lld-x86_64-freebsd/builds/11694/steps/build_Lld/logs/stdio (https://godbolt.org/g/czUQZ8 for a simplified example of the issue). I did a quick fix by removing the forward declaration again and using the fully qualified llvm::StringSet in MinGW.h (instead of the using statement that you weren't so fond of earlier in review).
Instead of doing this, please include LLVM.h just like other headers in lld do.