Build fix for windows: don't explicitly instantiate a template with an explicit speci...
[dyninst.git] / dyninstAPI / src / BPatch_templates.C
1 /*
2  * Copyright (c) 1996-2009 Barton P. Miller
3  * 
4  * We provide the Paradyn Parallel Performance Tools (below
5  * described as "Paradyn") on an AS IS basis, and do not warrant its
6  * validity or performance.  We reserve the right to update, modify,
7  * or discontinue this software at any time.  We shall have no
8  * obligation to supply such updates or modifications or any other
9  * form of support to you.
10  * 
11  * By your use of Paradyn, you understand and agree that we (or any
12  * other person or entity with proprietary rights in Paradyn) are
13  * under no obligation to provide either maintenance services,
14  * update services, notices of latent defects, or correction of
15  * defects for Paradyn.
16  * 
17  * This library is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU Lesser General Public
19  * License as published by the Free Software Foundation; either
20  * version 2.1 of the License, or (at your option) any later version.
21  * 
22  * This library is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25  * Lesser General Public License for more details.
26  * 
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the Free Software
29  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30  */
31
32 // $Id: BPatch_templates.C,v 1.42 2008/02/23 02:09:04 jaw Exp $
33
34 #include <sys/types.h>
35
36 #define BPATCH_FILE
37
38 #if !defined(i386_unknown_nt4_0)  && !(defined mips_unknown_ce2_11) //ccw 20 july 2000 : 28 mar 2001
39 #if defined(__XLC__) || defined(__xlC__)
40 #pragma implementation("BPatch_Vector.h")
41 #else
42 #pragma implementation "BPatch_Vector.h"
43 #endif
44 #endif
45 #include "BPatch_Vector.h"
46
47 #if !defined(i386_unknown_nt4_0) && !(defined mips_unknown_ce2_11) //ccw 20 july 2000 : 28 mar 2001
48 #if defined(__XLC__) || defined(__xlC__)
49 #pragma implementation("BPatch_Set.h")
50 #else
51 #pragma implementation "BPatch_Set.h"
52 #endif
53 #endif
54 #include "BPatch_Set.h"
55
56 #if !defined(i386_unknown_nt4_0) && !(defined mips_unknown_ce2_11) //ccw 20 july 2000 : 28 mar 2001
57 #if defined(__XLC__) || defined(__xlC__)
58 #pragma implementation("refCounter.h")
59 #else
60 #pragma implementation "refCounter.h"
61 #endif
62 #endif
63 #include <string>
64 #include "common/h/refCounter.h"
65 #include "common/h/Types.h"
66 #include "common/h/Pair.h"
67 #include "function.h"
68
69 // VG(09/19/01): I don't think one can forward a typedefed enum (BPatch_opCode)
70 //               so this must be included...
71 #include <BPatch_point.h>
72
73 #include "BPatch_basicBlock.h"
74
75 //class BPatch_point;
76 class BPatch_field;
77 class BPatch_thread;
78 class BPatch_module;
79 class BPatch_snippet;
80 class BPatchSnippetHandle;
81 class BPatch_function;
82 class BPatch_type;
83 class BPatch_variableExpr;
84 class BPatch_localVar;
85 class BPatch_sourceObj;
86 class BPatch_loopTreeNode;
87 class int_function;
88 class miniTramp;
89 class instPoint;
90 class BPatch_basicBlock;
91
92 /* only define the ones not defined with a vector inside  */
93 template class BPatch_Vector<BPatch_point *>;
94 template class BPatch_Vector<BPatch_thread *>;
95 template class BPatch_Vector<BPatch_process *>;
96 template class BPatch_Vector<BPatch_snippet *>;
97 template class BPatch_Vector<BPatchSnippetHandle *>;
98 template class BPatch_Vector<BPatch_function *>;
99 template class BPatch_Vector<BPatch_variableExpr *>;
100 template class BPatch_Vector<BPatch_type *>;
101 template class BPatch_Vector<BPatch_module *>;
102 template class BPatch_Vector<char *>;
103 template class BPatch_Vector<BPatch_sourceObj *>;
104 template class BPatch_Vector<BPatch_loopTreeNode *>;
105 template class BPatch_Vector<int_function *>;
106 template class BPatch_Vector<miniTramp *>;
107
108 template class BPatch_Vector<const char *>;
109
110
111 template class BPatch_Vector<BPatch_localVar *>;
112 template class BPatch_Vector<BPatch_field *>;
113 template class BPatch_Vector<int>;
114 template class BPatch_Vector<unsigned long>;
115
116 template struct comparison<unsigned short>;
117 template class BPatch_Set<unsigned short>;
118 template struct comparison<Address>;
119 template class BPatch_Set<Address>;
120 template class BPatch_Vector<unsigned short>;
121 template struct comparison<int>;
122 template class BPatch_Set<int>;
123 template class BPatch_Set<BPatch_opCode>;
124 template class BPatch_Vector<BPatch_opCode>;
125 template class BPatch_Set< int_function* , int_function::cmpAddr >;
126
127
128 class BPatch_basicBlock;
129 class BPatch_basicBlockLoop;
130
131 template class BPatch_Vector<BPatch_basicBlock*>;
132 template class BPatch_Vector<BPatch_basicBlockLoop*>;
133
134 class BPatch_cblock;
135
136 template class BPatch_Vector<BPatch_cblock*>;
137
138 template class BPatch_Set<BPatch_basicBlock*>;
139 template class BPatch_Set<BPatch_basicBlock*, BPatch_basicBlock::compare>; 
140 template struct comparison<BPatch_basicBlockLoop*>;
141 template class BPatch_Set<BPatch_basicBlockLoop*>;
142
143 class BPatch_sourceBlock;
144
145 template class BPatch_Vector<BPatch_sourceBlock*>;
146
147 class BPatch_instruction;
148 template class BPatch_Vector<BPatch_instruction*>;
149
150 template struct pdpair<unsigned short, unsigned short>;
151
152 template pdpair<unsigned short, unsigned short> min_max_pdpair<unsigned short>(const BPatch_Vector<unsigned short>&);
153
154
155 class BPatch_edge;
156 template class BPatch_Vector<BPatch_edge*>;
157 template struct comparison<BPatch_edge*>;
158 template class BPatch_Set<BPatch_edge*>;
159
160 struct batchInsertionRecord;
161 template class BPatch_Vector<batchInsertionRecord *>;
162
163