File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,6 @@ class CompilerPlugin {
97
97
98
98
// / Represents a in-process plugin server.
99
99
class InProcessPlugins : public CompilerPlugin {
100
- // / PluginServer shared library handle.
101
- void *server;
102
-
103
100
// / Entry point in the in-process plugin server. It receives the request
104
101
// / string and populate the response string. The return value indicates there
105
102
// / was an error. If true the returned string contains the error message.
@@ -113,10 +110,9 @@ class InProcessPlugins : public CompilerPlugin {
113
110
// / Temporary storage for the response data from 'handleMessageFn'.
114
111
std::string receivedResponse;
115
112
116
- InProcessPlugins (llvm::StringRef serverPath, void *server,
113
+ InProcessPlugins (llvm::StringRef serverPath,
117
114
HandleMessageFunction handleMessageFn)
118
- : CompilerPlugin(serverPath), server(server),
119
- handleMessageFn (handleMessageFn) {}
115
+ : CompilerPlugin(serverPath), handleMessageFn(handleMessageFn) {}
120
116
121
117
public:
122
118
// / Create an instance by loading the in-process plugin server at 'serverPath'
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ InProcessPlugins::create(const char *serverPath) {
108
108
" entry point not found in '%s'" , serverPath);
109
109
}
110
110
return std::unique_ptr<InProcessPlugins>(new InProcessPlugins (
111
- serverPath, server, reinterpret_cast <HandleMessageFunction>(funcPtr)));
111
+ serverPath, reinterpret_cast <HandleMessageFunction>(funcPtr)));
112
112
}
113
113
114
114
llvm::Error InProcessPlugins::sendMessage (llvm::StringRef message) {
You can’t perform that action at this time.
0 commit comments