Skip to content

Commit 5181270

Browse files
author
Zak Kent
committed
[Immediate] Remove unused functions in SwiftJIT
1 parent 0b618fe commit 5181270

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

include/swift/Immediate/SwiftMaterializationUnit.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class SwiftJIT {
4848
static llvm::Expected<std::unique_ptr<SwiftJIT>> Create(CompilerInstance &CI);
4949

5050
~SwiftJIT();
51-
llvm::orc::LLJIT &getJIT();
5251

5352
llvm::orc::JITDylib &getMainJITDylib();
5453

@@ -57,15 +56,6 @@ class SwiftJIT {
5756
llvm::Error addSwift(llvm::orc::JITDylib &JD,
5857
std::unique_ptr<llvm::orc::MaterializationUnit> MU);
5958

60-
llvm::Error initialize(llvm::orc::JITDylib &JD);
61-
62-
llvm::Error deinitialize(llvm::orc::JITDylib &JD);
63-
64-
llvm::Expected<llvm::orc::ExecutorAddr> lookup(llvm::StringRef Name);
65-
66-
llvm::Expected<llvm::orc::ExecutorAddr>
67-
lookupLinkerMangled(llvm::StringRef Name);
68-
6959
std::string mangle(llvm::StringRef Name);
7060

7161
llvm::orc::SymbolStringPtr mangleAndIntern(llvm::StringRef Name);

lib/Immediate/SwiftMaterializationUnit.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -119,29 +119,10 @@ llvm::Expected<int> SwiftJIT::runMain(llvm::ArrayRef<std::string> Args) {
119119
return Result;
120120
}
121121

122-
llvm::orc::LLJIT &SwiftJIT::getJIT() { return *J; }
123-
124122
llvm::orc::JITDylib &SwiftJIT::getMainJITDylib() {
125123
return J->getMainJITDylib();
126124
}
127125

128-
llvm::Error SwiftJIT::initialize(llvm::orc::JITDylib &JD) {
129-
return J->initialize(JD);
130-
}
131-
132-
llvm::Error SwiftJIT::deinitialize(llvm::orc::JITDylib &JD) {
133-
return J->deinitialize(JD);
134-
}
135-
136-
llvm::Expected<llvm::orc::ExecutorAddr> SwiftJIT::lookup(llvm::StringRef Name) {
137-
return J->lookup(Name);
138-
}
139-
140-
llvm::Expected<llvm::orc::ExecutorAddr>
141-
SwiftJIT::lookupLinkerMangled(llvm::StringRef Name) {
142-
return J->lookupLinkerMangled(Name);
143-
}
144-
145126
std::string SwiftJIT::mangle(StringRef Name) { return J->mangle(Name); }
146127

147128
llvm::orc::SymbolStringPtr SwiftJIT::mangleAndIntern(StringRef Name) {

0 commit comments

Comments
 (0)