[clangd] NFC: Fix broken build

llvm-svn: 340263
This commit is contained in:
Kirill Bobyrev 2018-08-21 10:40:19 +00:00
parent 7a94c918a0
commit dc41befc4f
1 changed files with 6 additions and 6 deletions

View File

@ -29,6 +29,11 @@
using namespace clang;
using namespace clang::clangd;
static llvm::cl::opt<bool>
UseDex("use-dex-index",
llvm::cl::desc("Use experimental Dex static index."),
llvm::cl::init(false), llvm::cl::Hidden);
namespace {
enum class PCHStorageFlag { Disk, Memory };
@ -47,7 +52,7 @@ std::unique_ptr<SymbolIndex> buildStaticIndex(llvm::StringRef YamlSymbolFile) {
for (auto Sym : Slab)
SymsBuilder.insert(Sym);
return UseDex ? DexIndex::build(std::move(SymsBuilder).build())
return UseDex ? dex::DexIndex::build(std::move(SymsBuilder).build())
: MemIndex::build(std::move(SymsBuilder).build());
}
@ -189,11 +194,6 @@ static llvm::cl::opt<CompileArgsFrom> CompileArgsFrom(
"'compile_commands.json' files")),
llvm::cl::init(FilesystemCompileArgs), llvm::cl::Hidden);
static llvm::cl::opt<bool>
UseDex("use-dex-index",
llvm::cl::desc("Use experimental Dex static index."),
llvm::cl::init(false), llvm::cl::Hidden);
int main(int argc, char *argv[]) {
llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);
llvm::cl::SetVersionPrinter([](llvm::raw_ostream &OS) {