mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
When running the GRSimpleVals analysis, skip functions that do not
appear in a file. llvm-svn: 47491
This commit is contained in:
parent
43638a87e5
commit
76c03b4a55
@ -604,9 +604,11 @@ void GRSimpleValsVisitor::VisitCFG(CFG& C, FunctionDecl& FD) {
|
||||
if (FName.size() > 0 && FName != FD.getIdentifier()->getName())
|
||||
return;
|
||||
|
||||
if (FD.getLocation().getFileID() != Ctx->getSourceManager().getMainFileID())
|
||||
return;
|
||||
SourceLocation Loc = FD.getLocation();
|
||||
|
||||
if (!Loc.isFileID() ||
|
||||
Loc.getFileID() != Ctx->getSourceManager().getMainFileID())
|
||||
return;
|
||||
|
||||
if (!Visualize) {
|
||||
llvm::cerr << "ANALYZE: " << FD.getIdentifier()->getName() << ' '
|
||||
|
Loading…
Reference in New Issue
Block a user