After tested under windows.
[dyninst.git] / patchAPI / src / PointMaker.C
1 #include "Point.h"
2 #include "PatchMgr.h"
3 #include "PatchObject.h"
4 #include "PatchCFG.h"
5
6 using Dyninst::PatchAPI::Point;
7 using Dyninst::PatchAPI::PatchFunction;
8 using Dyninst::PatchAPI::PointMaker;
9 using Dyninst::PatchAPI::PatchBlock;
10 using Dyninst::PatchAPI::PatchEdge;
11
12
13 Point*
14 PointMaker::createPoint(Address addr,
15                         Point::Type type,
16                         Address* scope) {
17   Point* ret = new Point(addr, type, mgr_, scope);
18   return ret;
19 }
20
21 Point*
22 PointMaker::createPoint(Address addr,
23                         Point::Type type,
24                         PatchBlock* scope) {
25   Point* ret = new Point(addr, type, mgr_, scope);
26   return ret;
27 }
28
29 Point*
30 PointMaker::createPoint(Address addr,
31                         Point::Type type,
32                         PatchEdge* scope) {
33   Point* ret = new Point(addr, type, mgr_, scope);
34   return ret;
35 }
36
37 Point*
38 PointMaker::createPoint(Address addr,
39                         Point::Type type,
40                         PatchFunction* scope) {
41   Point* ret = new Point(addr, type, mgr_, scope);
42   return ret;
43 }