Skip to content

Commit

Permalink
[Driver] Remove no-op -frewrite-map-file=
Browse files Browse the repository at this point in the history
This option has been a no-op since D99707.
  • Loading branch information
MaskRay committed Apr 25, 2023
1 parent a1e9b71 commit 7f59dba
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 42 deletions.
3 changes: 0 additions & 3 deletions clang/include/clang/Basic/CodeGenOptions.h
Expand Up @@ -368,9 +368,6 @@ class CodeGenOptions : public CodeGenOptionsBase {
/// transformation.
OptRemark OptimizationRemarkAnalysis;

/// Set of files defining the rules for the symbol rewriting.
std::vector<std::string> RewriteMapFiles;

/// Set of sanitizer checks that are non-fatal (i.e. execution should be
/// continued when possible).
SanitizerSet SanitizeRecover;
Expand Down
5 changes: 0 additions & 5 deletions clang/include/clang/Driver/Options.td
Expand Up @@ -2036,11 +2036,6 @@ defm delete_null_pointer_checks : BoolFOption<"delete-null-pointer-checks",
PosFlag<SetFalse, [], "Treat usage of null pointers as undefined behavior (default)">,
BothFlags<[CoreOption]>>;

def frewrite_map_file_EQ : Joined<["-"], "frewrite-map-file=">,
Group<f_Group>,
Flags<[NoXarchOption, CC1Option]>,
MarshallingInfoStringVector<CodeGenOpts<"RewriteMapFiles">>;

defm use_line_directives : BoolFOption<"use-line-directives",
PreprocessorOutputOpts<"UseLineDirectives">, DefaultFalse,
PosFlag<SetTrue, [CC1Option], "Use #line in preprocessed output">, NegFlag<SetFalse>>;
Expand Down
3 changes: 0 additions & 3 deletions clang/lib/Driver/Driver.cpp
Expand Up @@ -1809,9 +1809,6 @@ void Driver::generateCompilationDiagnostics(
}
}

for (const auto &A : C.getArgs().filtered(options::OPT_frewrite_map_file_EQ))
Diag(clang::diag::note_drv_command_failed_diag_msg) << A->getValue();

Diag(clang::diag::note_drv_command_failed_diag_msg)
<< "\n\n********************";
}
Expand Down
10 changes: 0 additions & 10 deletions clang/lib/Driver/ToolChains/Clang.cpp
Expand Up @@ -5207,16 +5207,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,

// LLVM Code Generator Options.

for (const Arg *A : Args.filtered(options::OPT_frewrite_map_file_EQ)) {
StringRef Map = A->getValue();
if (!llvm::sys::fs::exists(Map)) {
D.Diag(diag::err_drv_no_such_file) << Map;
} else {
A->render(Args, CmdArgs);
A->claim();
}
}

if (Arg *A = Args.getLastArg(options::OPT_mabi_EQ_quadword_atomics)) {
if (!Triple.isOSAIX() || Triple.isPPC32())
D.Diag(diag::err_drv_unsupported_opt_for_target)
Expand Down
Empty file.
Empty file.
Empty file.
2 changes: 0 additions & 2 deletions clang/test/Driver/rewrite-map-files.c

This file was deleted.

12 changes: 0 additions & 12 deletions clang/test/Driver/rewrite-map-in-diagnostics.c

This file was deleted.

7 changes: 0 additions & 7 deletions clang/test/Driver/symbol-rewriter.c

This file was deleted.

0 comments on commit 7f59dba

Please sign in to comment.