Example #1
0
 def __postParsing__(self, Routine, CrossReference):
     globalVar = CrossReference.getGlobalByName(self._varName)
     if not globalVar:
         globalVar = CrossReference.addNonFileManGlobalByName(self._varName)
     routineName = Routine.getName()
     # case to handle the platform dependent routines
     if CrossReference.isPlatformDependentRoutineByName(routineName):
         genericRoutine = CrossReference.getGenericPlatformDepRoutineByName(routineName)
         assert genericRoutine
         globalVar.addReferencedRoutine(genericRoutine)
         genericRoutine.addReferredGlobal(globalVar)
     else:
         globalVar.addReferencedRoutine(Routine)
     Routine.addReferredGlobal(globalVar)
Example #2
0
 def __postParsing__(self, Routine, CrossReference):
     globalVar = CrossReference.getGlobalByName(self._varName)
     if not globalVar:
         globalVar = CrossReference.addNonFileManGlobalByName(self._varName)
     routineName = Routine.getName()
     # case to handle the platform dependent routines
     if CrossReference.isPlatformDependentRoutineByName(routineName):
         genericRoutine = CrossReference.getGenericPlatformDepRoutineByName(routineName)
         assert genericRoutine
         globalVar.addReferencedRoutine(genericRoutine)
         genericRoutine.addReferredGlobal(globalVar)
     else:
         globalVar.addReferencedRoutine(Routine)
     Routine.addReferredGlobal(globalVar)