-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
gcdump_dac.cpp
46 lines (39 loc) · 1.03 KB
/
gcdump_dac.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include <stdafx.h>
/* There is no DAC build of gcdump, so instead
* build it directly into the dac. That's what all these ugly defines
* are all about.
*/
#ifdef __MSC_VER
#pragma warning(disable:4189) // local variable is initialized but not referenced
#endif // __MSC_VER
#undef assert
#define assert(a)
#define NOTHROW
#define GC_NOTRIGGER
#include <gcdecoder.cpp>
#undef NOTHROW
#undef GC_NOTRIGGER
#if defined _DEBUG && defined TARGET_X86
#ifdef _MSC_VER
// disable FPO for checked build
#pragma optimize("y", off)
#endif // _MSC_VER
#endif
#undef _ASSERTE
#define _ASSERTE(a) do {} while (0)
#ifdef TARGET_X86
#include <gcdump.cpp>
#endif
#undef LIMITED_METHOD_CONTRACT
#undef WRAPPER_NO_CONTRACT
#ifdef TARGET_X86
#include <i386/gcdumpx86.cpp>
#else // !TARGET_X86
#undef PREGDISPLAY
#include <gcdumpnonx86.cpp>
#endif // !TARGET_X86
#ifdef __MSC_VER
#pragma warning(default:4189)
#endif // __MSC_VER