@@ -187,28 +187,6 @@ void IR2Vec_FA::generateFlowAwareEncodings(std::ostream *o,
187187 std::to_string (cyclicCounter) + " \n " );
188188}
189189
190- // This function will update funcVecMap by doing DFS starting from parent
191- // function
192- // void IR2Vec_FA::updateFuncVecMap(
193- // llvm::Function *function,
194- // llvm::SmallSet<const llvm::Function *, 16> &visitedFunctions) {
195- // visitedFunctions.insert(function);
196- // auto tmpParent = func2Vec(*function);
197- // // funcVecMap is updated with vectors returned by func2Vec
198- // funcVecMap[function] = tmpParent;
199- // auto calledFunctions = funcCallMap[function];
200- // for (auto &calledFunction : calledFunctions) {
201- // if (calledFunction && !calledFunction->isDeclaration() &&
202- // visitedFunctions.count(calledFunction) == 0) {
203- // // doing casting since calledFunctions is of type of const
204- // // llvm::Function* and we need llvm::Function* as argument
205- // auto *callee = const_cast<Function *>(calledFunction);
206- // // This function is called recursively to update funcVecMap
207- // updateFuncVecMap(callee, visitedFunctions);
208- // }
209- // }
210- // }
211-
212190void IR2Vec_FA::updateFuncVecMap (
213191 llvm::Function *function,
214192 llvm::SmallSet<const llvm::Function *, 16 > &visitedFunctions) {
0 commit comments