]> granicus.if.org Git - clang/commitdiff
[analyzer] Print Inline mode with -analyzer-display-progress.
authorAnna Zaks <ganna@apple.com>
Sat, 2 Feb 2013 00:30:02 +0000 (00:30 +0000)
committerAnna Zaks <ganna@apple.com>
Sat, 2 Feb 2013 00:30:02 +0000 (00:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174244 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp

index a3195305525b53ea4c6eed032fe82fdbaafcdcf7..12d5f2a47acb41a906a058154c3232b87f2b58e6 100644 (file)
@@ -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)
       return;
 
@@ -230,8 +231,18 @@ public:
 
       if (Mode == AM_Syntax)
         llvm::errs() << " (Syntax)";
-      else if (Mode == AM_Path)
-        llvm::errs() << " (Path)";
+      else if (Mode == AM_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
         assert(Mode == (AM_Syntax | AM_Path) && "Unexpected mode!");
 
@@ -569,7 +580,7 @@ void AnalysisConsumer::HandleCode(Decl *D, AnalysisMode Mode,
   if (Mode == AM_None)
     return;
 
-  DisplayFunction(D, Mode);
+  DisplayFunction(D, Mode, IMode);
   CFG *DeclCFG = Mgr->getCFG(D);
   if (DeclCFG) {
     unsigned CFGSize = DeclCFG->size();