mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Fewer headers include Expr.h, Module.h, Stmt.h
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
#ifndef SWIFT_SIL_SILFUNCTION_H
|
||||
#define SWIFT_SIL_SILFUNCTION_H
|
||||
|
||||
#include "swift/AST/ASTNode.h"
|
||||
#include "swift/AST/ResilienceExpansion.h"
|
||||
#include "swift/Basic/ProfileCounter.h"
|
||||
#include "swift/SIL/SILBasicBlock.h"
|
||||
#include "swift/SIL/SILDebugScope.h"
|
||||
#include "swift/SIL/SILLinkage.h"
|
||||
#include "swift/SIL/SILPrintContext.h"
|
||||
#include "swift/SIL/SILProfiler.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
|
||||
/// The symbol name used for the program entry point function.
|
||||
@@ -35,6 +35,7 @@ namespace swift {
|
||||
class ASTContext;
|
||||
class SILInstruction;
|
||||
class SILModule;
|
||||
class SILProfiler;
|
||||
|
||||
enum IsBare_t { IsNotBare, IsBare };
|
||||
enum IsTransparent_t { IsNotTransparent, IsTransparent };
|
||||
@@ -266,10 +267,7 @@ public:
|
||||
Profiler = InheritedProfiler;
|
||||
}
|
||||
|
||||
void createProfiler(ASTNode Root, ForDefinition_t forDefinition) {
|
||||
assert(!Profiler && "Function already has a profiler");
|
||||
Profiler = SILProfiler::create(Module, forDefinition, Root);
|
||||
}
|
||||
void createProfiler(ASTNode Root, ForDefinition_t forDefinition);
|
||||
|
||||
void discardProfiler() { Profiler = nullptr; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user