forked from OSchip/llvm-project
parent
7a94c918a0
commit
dc41befc4f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue