Add loc object in startFunc/endFunc/returnStmt