forked from OSchip/llvm-project
[analyzer] Print Inline mode with -analyzer-display-progress.
llvm-svn: 174244
This commit is contained in:
parent
10641e66b0
commit
e9eb13aba3
|
@ -219,7 +219,8 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayFunction(const Decl *D, AnalysisMode Mode) {
|
void DisplayFunction(const Decl *D, AnalysisMode Mode,
|
||||||
|
ExprEngine::InliningModes IMode) {
|
||||||
if (!Opts->AnalyzerDisplayProgress)
|
if (!Opts->AnalyzerDisplayProgress)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -230,8 +231,18 @@ public:
|
||||||
|
|
||||||
if (Mode == AM_Syntax)
|
if (Mode == AM_Syntax)
|
||||||
llvm::errs() << " (Syntax)";
|
llvm::errs() << " (Syntax)";
|
||||||
else if (Mode == AM_Path)
|
else if (Mode == AM_Path) {
|
||||||
llvm::errs() << " (Path)";
|
llvm::errs() << " (Path, ";
|
||||||
|
switch (IMode) {
|
||||||
|
case ExprEngine::Inline_None:
|
||||||
|
llvm::errs() << " Inline_None";
|
||||||
|
break;
|
||||||
|
case ExprEngine::Inline_All:
|
||||||
|
llvm::errs() << " Inline_All";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
llvm::errs() << ")";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
assert(Mode == (AM_Syntax | AM_Path) && "Unexpected mode!");
|
assert(Mode == (AM_Syntax | AM_Path) && "Unexpected mode!");
|
||||||
|
|
||||||
|
@ -569,7 +580,7 @@ void AnalysisConsumer::HandleCode(Decl *D, AnalysisMode Mode,
|
||||||
if (Mode == AM_None)
|
if (Mode == AM_None)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DisplayFunction(D, Mode);
|
DisplayFunction(D, Mode, IMode);
|
||||||
CFG *DeclCFG = Mgr->getCFG(D);
|
CFG *DeclCFG = Mgr->getCFG(D);
|
||||||
if (DeclCFG) {
|
if (DeclCFG) {
|
||||||
unsigned CFGSize = DeclCFG->size();
|
unsigned CFGSize = DeclCFG->size();
|
||||||
|
|
Loading…
Reference in New Issue