Skip to content

Commit a23eaf4

Browse files
authored
Remove API notes compilation support from swiftc (#21759)
We don't use this feature anymore (see 0149129), and now that we've branched Swift 5.0 for the last time it's time to rip it out of swiftc (and then from Clang). No functionality change, unless someone was compiling their own API notes. If you were doing that, just copy them into place as text.
1 parent eb083ce commit a23eaf4

File tree

5 files changed

+0
-251
lines changed

5 files changed

+0
-251
lines changed

test/APINotes/Inputs/roundtrip.apinotes

-79
This file was deleted.

test/APINotes/yaml-roundtrip.swift

-7
This file was deleted.

tools/driver/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
add_swift_host_tool(swift
2-
api_notes.cpp
32
driver.cpp
43
autolink_extract_main.cpp
54
modulewrap_main.cpp

tools/driver/api_notes.cpp

-158
This file was deleted.

tools/driver/driver.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ static bool shouldRunAsSubcommand(StringRef ExecName,
111111
return true;
112112
}
113113

114-
extern int apinotes_main(ArrayRef<const char *> Args);
115-
116114
static int run_driver(StringRef ExecName,
117115
const ArrayRef<const char *> argv) {
118116
// Handle integrated tools.
@@ -128,10 +126,6 @@ static int run_driver(StringRef ExecName,
128126
argv.data()+argv.size()),
129127
argv[0], (void *)(intptr_t)getExecutablePath);
130128
}
131-
if (FirstArg == "-apinotes") {
132-
return apinotes_main(llvm::makeArrayRef(argv.data()+1,
133-
argv.data()+argv.size()));
134-
}
135129
}
136130

137131
std::string Path = getExecutablePath(argv[0]);

0 commit comments

Comments
 (0)