Skip to content

Commit 52cd871

Browse files
committed
Split GenFunc.cpp in three: GenFunc for function types and blocks,
GenCall for function signatures, calls, and prologue/epilogue, and GenBuiltin for builtin operations. NFC.
1 parent 2b6da60 commit 52cd871

File tree

12 files changed

+3102
-2982
lines changed

12 files changed

+3102
-2982
lines changed

lib/IRGen/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ add_swift_library(swiftIRGen
44
ExtraInhabitants.cpp
55
Fulfillment.cpp
66
GenArchetype.cpp
7+
GenBuiltin.cpp
8+
GenCall.cpp
79
GenCast.cpp
810
GenClangDecl.cpp
911
GenClangType.cpp

lib/IRGen/Callee.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,21 @@
2121
#include <type_traits>
2222
#include "llvm/IR/DerivedTypes.h"
2323
#include "swift/SIL/SILType.h"
24-
#include "CallingConvention.h"
2524
#include "Explosion.h"
2625
#include "IRGen.h"
26+
#include "Signature.h"
2727

2828
namespace llvm {
2929
class PointerType;
3030
}
3131

32-
namespace clang {
33-
namespace CodeGen {
34-
class CGFunctionInfo;
35-
}
36-
}
37-
3832
namespace swift {
3933
class Substitution;
4034

4135
namespace irgen {
4236
class Callee;
4337
class IRGenFunction;
4438

45-
class ForeignFunctionInfo {
46-
public:
47-
const clang::CodeGen::CGFunctionInfo *ClangInfo = nullptr;
48-
};
49-
5039
class Callee {
5140
/// The unsubstituted function type being called.
5241
CanSILFunctionType OrigFnType;

lib/IRGen/CallingConvention.h

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)