mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:34:42 +01:00
Stop emitting llvm.ident metadata saying the compiler was Clang. (#5520)
This commit is contained in:
@@ -174,6 +174,9 @@ auto FileContext::CreateCppCodeGenerator()
|
||||
RawStringOstream clang_module_name_stream;
|
||||
clang_module_name_stream << llvm_module_->getName() << ".clang";
|
||||
|
||||
// Do not emit Clang's name and version as the creator of the output file.
|
||||
cpp_code_gen_options_.EmitVersionIdentMetadata = false;
|
||||
|
||||
return std::unique_ptr<clang::CodeGenerator>(clang::CreateLLVMCodeGen(
|
||||
cpp_ast()->getASTContext().getDiagnostics(),
|
||||
clang_module_name_stream.TakeStr(), fs_, cpp_header_search_options_,
|
||||
|
||||
Reference in New Issue
Block a user