Skip to content

Commit 1c6d19a

Browse files
author
Davide Italiano
committed
[lldb-moduleimport-test] Remove unused options. NFCI.
<rdar://problem/38867076>
1 parent d6692b6 commit 1c6d19a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tools/lldb-moduleimport-test/lldb-moduleimport-test.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,6 @@ int main(int argc, char **argv) {
188188
llvm::cl::opt<std::string> ModuleCachePath(
189189
"module-cache-path", llvm::cl::desc("Clang module cache path"));
190190

191-
llvm::cl::list<std::string> ImportPaths(
192-
"I", llvm::cl::desc("add a directory to the import search path"));
193-
194-
llvm::cl::list<std::string> FrameworkPaths(
195-
"F", llvm::cl::desc("add a directory to the framework search path"));
196-
197191
llvm::cl::opt<std::string> DumpDeclFromMangled(
198192
"decl-from-mangled", llvm::cl::desc("dump decl from mangled names list"));
199193

@@ -207,8 +201,6 @@ int main(int argc, char **argv) {
207201
llvm::cl::ParseCommandLineOptions(argc, argv);
208202
// Unregister our options so they don't interfere with the command line
209203
// parsing in CodeGen/BackendUtil.cpp.
210-
FrameworkPaths.removeArgument();
211-
ImportPaths.removeArgument();
212204
ModuleCachePath.removeArgument();
213205
DumpModule.removeArgument();
214206
DumpTypeFromMangled.removeArgument();
@@ -255,12 +247,6 @@ int main(int argc, char **argv) {
255247

256248
Invocation.setModuleName("lldbtest");
257249
Invocation.getClangImporterOptions().ModuleCachePath = ModuleCachePath;
258-
Invocation.setImportSearchPaths(ImportPaths);
259-
std::vector<swift::SearchPathOptions::FrameworkSearchPath> FramePaths;
260-
for (const auto &path : FrameworkPaths) {
261-
FramePaths.push_back({path, /*isSystem=*/false});
262-
}
263-
Invocation.setFrameworkSearchPaths(FramePaths);
264250

265251
if (CI.setup(Invocation))
266252
return 1;

0 commit comments

Comments
 (0)