| 39 | } |
| 40 | |
| 41 | void FilePathAnalyzer::analyzeFilePath(llvm::Argument &A) { |
| 42 | std::set<Value *> VisitedNodes; |
| 43 | ArgFlow &AF = getOrCreateArgFlow(A); |
| 44 | std::stack<StackFrame> DefUseChains; |
| 45 | DefUseChains.emplace(&A, AF); |
| 46 | while (!DefUseChains.empty()) { |
| 47 | auto Frame = DefUseChains.top(); |
| 48 | DefUseChains.pop(); |
| 49 | handleStackFrame(Frame, DefUseChains, VisitedNodes); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void FilePathAnalyzer::handleStackFrame(StackFrame &Frame, |
| 54 | std::stack<StackFrame> &DefUseChains, |