diff options
-rw-r--r-- | lib/Analysis/BodyFarm.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Analysis/BodyFarm.cpp b/lib/Analysis/BodyFarm.cpp index c01d4e6fcb..7b1122d5b0 100644 --- a/lib/Analysis/BodyFarm.cpp +++ b/lib/Analysis/BodyFarm.cpp @@ -20,7 +20,9 @@ using namespace clang; -typedef Stmt *(*FunctionFarmer)(ASTContext &C, const FunctionDecl *D); +//===----------------------------------------------------------------------===// +// Helper creation functions for constructing faux ASTs. +//===----------------------------------------------------------------------===// static bool isDispatchBlock(QualType Ty) { // Is it a block pointer? @@ -39,6 +41,12 @@ static bool isDispatchBlock(QualType Ty) { return true; } +//===----------------------------------------------------------------------===// +// Creation functions for faux ASTs. +//===----------------------------------------------------------------------===// + +typedef Stmt *(*FunctionFarmer)(ASTContext &C, const FunctionDecl *D); + /// Create a fake body for dispatch_once. static Stmt *create_dispatch_once(ASTContext &C, const FunctionDecl *D) { // Check if we have at least two parameters. |