Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def index_ignore_pcms : Flag<["-"], "index-ignore-pcms">,
Visibility<[ClangOption, CC1Option]>,
HelpText<"Ignore symbols from imported pcm modules">,
MarshallingInfoFlag<FrontendOpts<"IndexIgnorePcms">>;
def index_store_record_compression
def index_store_compress
: Flag<["-"], "index-store-compress">,
Visibility<[ClangOption, CC1Option]>,
HelpText<"Whether to compress unit and record files in the index store">,
Expand Down
1 change: 1 addition & 0 deletions clang/lib/Driver/ToolChains/Clang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6477,6 +6477,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &Job,
Args.AddLastArg(CmdArgs, options::OPT_index_unit_output_path);
Args.AddLastArg(CmdArgs, options::OPT_index_ignore_macros);
Args.AddLastArg(CmdArgs, options::OPT_index_ignore_pcms);
Args.AddLastArg(CmdArgs, options::OPT_index_store_compress);

// If '-o' is passed along with '-fsyntax-only' pass it along the cc1
// invocation so that the index action knows what the out file is.
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Index/Store/compress-index-store.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: rm -rf %t.idx
// RUN: %clang_cc1 %s -index-store-path %t.idx -index-store-compress
// RUN: %clang -Werror=unused-command-line-argument -fsyntax-only %s -index-store-path %t.idx -index-store-compress
// RUN: c-index-test core -print-unit %t.idx | FileCheck --check-prefix=UNIT %s
// RUN: c-index-test core -print-record %t.idx | FileCheck --check-prefix=RECORD %s

Expand Down