Linking tblgen debug executable (without symbols) on MinGW

Hi

I've been able to semi compile (i.e. excluded code not present on the platform) the source code of the LLVM tblgen tool on the MinGW platform. However, when linking the object files the linker does not succeed:

Yes. You need to link with dbghelp.lib and psapi.lib. There are
pragmas to force this, but not surprisingly gcc does not honor Microsoft
pragmas.

The unsatisified externals in Path are fixed by my patch to Path.cpp.