After tested under windows.
[dyninst.git] / dyninstAPI / src / Relocation / DynPointMaker.C
1 #include "DynPointMaker.h"
2 #include "dyninstAPI/src/function.h"
3 #include "dyninstAPI/src/instPoint.h"
4
5
6 Point* DynPointMaker::createPoint(Address addr, Point::Type type,
7                                   Address* scope) {
8   instPoint* ret = new instPoint(addr, type, mgr_, scope);
9   return ret;
10 }
11
12 Point* DynPointMaker::createPoint(Address addr, Point::Type type,
13                                   PatchBlock* scope) {
14   instPoint* ret = new instPoint(addr, type, mgr_, SCAST_BI(scope));
15   return ret;
16 }
17
18 Point* DynPointMaker::createPoint(Address addr, Point::Type type,
19                                   PatchEdge* scope) {
20   instPoint* ret = new instPoint(addr, type, mgr_, SCAST_EI(scope));
21   return ret;
22 }
23
24 Point* DynPointMaker::createPoint(Address addr, Point::Type type,
25                                   PatchFunction* scope) {
26   instPoint* ret = new instPoint(addr, type, mgr_, SCAST_FI(scope));
27   return ret;
28 }