mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[rebranch] remove unneeded SingleCommandCompilationDatabase (#38961)
This class will now be provided by LLVM as part of apple/llvm-project#3183
This commit is contained in:
@@ -80,26 +80,6 @@ llvm::ErrorOr<StringRef> ClangModuleDependenciesCacheImpl::getImportHackFile(Str
|
||||
return importHackFileCache[moduleName];
|
||||
}
|
||||
|
||||
namespace {
|
||||
class SingleCommandCompilationDatabase : public CompilationDatabase {
|
||||
public:
|
||||
SingleCommandCompilationDatabase(CompileCommand Cmd)
|
||||
: Command(std::move(Cmd)) {}
|
||||
|
||||
virtual std::vector<CompileCommand>
|
||||
getCompileCommands(StringRef FilePath) const override {
|
||||
return {Command};
|
||||
}
|
||||
|
||||
virtual std::vector<CompileCommand> getAllCompileCommands() const override {
|
||||
return {Command};
|
||||
}
|
||||
|
||||
private:
|
||||
CompileCommand Command;
|
||||
};
|
||||
}
|
||||
|
||||
// Add search paths.
|
||||
// Note: This is handled differently for the Clang importer itself, which
|
||||
// adds search paths to Clang's data structures rather than to its
|
||||
|
||||
Reference in New Issue
Block a user