mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move DWARFImporterDelegate into ClangImporter and remove DWARFImporter.
This refactors DWARFImporter to become a part of ClangImporter, since it needs access to many of its implementation details anyway. The DWARFImporterDelegate is just another mechanism for deserializing Clang ASTs and once we have a Clang AST, the processing is effectively the same.
This commit is contained in:
@@ -220,10 +220,6 @@ int main(int argc, char **argv) {
|
||||
desc("The directory that holds the compiler resource files"),
|
||||
cat(Visible));
|
||||
|
||||
opt<bool> EnableDWARFImporter(
|
||||
"enable-dwarf-importer",
|
||||
desc("Import with LangOptions.EnableDWARFImporter = true"), cat(Visible));
|
||||
|
||||
ParseCommandLineOptions(argc, argv);
|
||||
|
||||
// Unregister our options so they don't interfere with the command line
|
||||
@@ -290,7 +286,6 @@ int main(int argc, char **argv) {
|
||||
Invocation.setModuleName("lldbtest");
|
||||
Invocation.getClangImporterOptions().ModuleCachePath = ModuleCachePath;
|
||||
Invocation.getLangOptions().EnableMemoryBufferImporter = true;
|
||||
Invocation.getLangOptions().EnableDWARFImporter = EnableDWARFImporter;
|
||||
|
||||
if (!ResourceDir.empty()) {
|
||||
Invocation.setRuntimeResourcePath(ResourceDir);
|
||||
|
||||
Reference in New Issue
Block a user