llvm.org GIT mirror llvm / dce2875
Patch to build win64 LLVM on Mingw. Patch by Ruben Van Boxem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142614 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4040 #pragma GCC diagnostic ignored "-Wformat"
4141 #pragma GCC diagnostic ignored "-Wformat-extra-args"
4242
43 // MinGW does not have updated support for the 64-bit versions of the DebugHlp
44 // APIs. So we will have to load them manually. The structures and method
45 // signatures were pulled from DbgHelp.h in the Windows Platform SDK, and
46 // adjusted for brevity.
43 #if !defined(__MINGW64_VERSION_MAJOR)
44 // MinGW.org does not have updated support for the 64-bit versions of the
45 // DebugHlp APIs. So we will have to load them manually. The structures and
46 // method signatures were pulled from DbgHelp.h in the Windows Platform SDK,
47 // and adjusted for brevity.
4748 typedef struct _IMAGEHLP_LINE64 {
4849 DWORD SizeOfStruct;
4950 PVOID Key;
146147 }
147148 return StackWalk64 != NULL;
148149 }
150 #endif // !defined(__MINGW64_VERSION_MAJOR)
149151 #endif // __MINGW32__
150152
151153 // Forward declare.
206208 #endif
207209
208210 static void RegisterHandler() {
209 #if __MINGW32__
210 // On MinGW, we need to load up the symbols explicitly, because the
211 #if __MINGW32__ && !defined(__MINGW64_VERSION_MAJOR)
212 // On MinGW.org, we need to load up the symbols explicitly, because the
211213 // Win32 framework they include does not have support for the 64-bit
212214 // versions of the APIs we need. If we cannot load up the APIs (which
213215 // would be unexpected as they should exist on every version of Windows