13
13
#ifndef SWIFT_SIL_SILOPENEDARCHETYPESTRACKER_H
14
14
#define SWIFT_SIL_SILOPENEDARCHETYPESTRACKER_H
15
15
16
- #include " swift/Basic/Compiler.h"
17
16
#include " swift/SIL/Notifications.h"
18
17
#include " swift/SIL/SILModule.h"
19
18
#include " swift/SIL/SILFunction.h"
20
19
#include " swift/SIL/SILUndef.h"
21
20
22
21
namespace swift {
23
22
24
- // Disable MSVC warning: multiple copy constructors specified.
25
- // TODO: silence this warning.
26
- #if SWIFT_COMPILER_IS_MSVC
27
- #pragma warning(push)
28
- #pragma warning(disable: 4521)
29
- #endif
30
-
31
23
// / SILOpenedArchetypesTracker is a helper class that can be used to create
32
24
// / and maintain a mapping from opened archetypes to instructions
33
25
// / defining them, e.g. open_existential_ref, open_existential_addr,
@@ -44,12 +36,6 @@ class SILOpenedArchetypesTracker : public DeleteNotificationHandler {
44
36
SILOpenedArchetypesTracker (SILOpenedArchetypesTracker &Tracker)
45
37
: SILOpenedArchetypesTracker(Tracker.F, Tracker) {}
46
38
47
- SILOpenedArchetypesTracker (const SILOpenedArchetypesTracker &Tracker)
48
- : SILOpenedArchetypesTracker(Tracker.F) {
49
- assert (Tracker.getOpenedArchetypeDefs ().empty () &&
50
- " Only empty const SILOpenedArchetypesTracker can be copied" );
51
- }
52
-
53
39
// Re-use pre-populated map if available.
54
40
SILOpenedArchetypesTracker (const SILFunction &F,
55
41
SILOpenedArchetypesTracker &Tracker)
@@ -136,10 +122,6 @@ class SILOpenedArchetypesTracker : public DeleteNotificationHandler {
136
122
OpenedArchetypeDefsMap LocalOpenedArchetypeDefs;
137
123
};
138
124
139
- #if SWIFT_COMPILER_IS_MSVC
140
- #pragma warning(pop)
141
- #endif
142
-
143
125
// A state object containing information about opened archetypes.
144
126
// This information can be used by constructors of SILInstructions,
145
127
// their create methods, etc.
0 commit comments