Author: Michael Spencer
Date: 2025-03-25T10:58:44-07:00
New Revision: 53fa28940e0a3ef183e04dd8bc8566d64bbfd101

URL: 
https://github.com/llvm/llvm-project/commit/53fa28940e0a3ef183e04dd8bc8566d64bbfd101
DIFF: 
https://github.com/llvm/llvm-project/commit/53fa28940e0a3ef183e04dd8bc8566d64bbfd101.diff

LOG: [clang] Remove unused member variable from ModuleMap

This became unused when module map parsing moved to ModuleMapFile.cpp.

Added: 
    

Modified: 
    clang/include/clang/Lex/ModuleMap.h
    clang/lib/Lex/ModuleMap.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Lex/ModuleMap.h 
b/clang/include/clang/Lex/ModuleMap.h
index 9de1b3b546c11..3baeea08cc0e3 100644
--- a/clang/include/clang/Lex/ModuleMap.h
+++ b/clang/include/clang/Lex/ModuleMap.h
@@ -84,11 +84,6 @@ class ModuleMap {
   /// such as "stdint.h".
   OptionalDirectoryEntryRef BuiltinIncludeDir;
 
-  /// Language options used to parse the module map itself.
-  ///
-  /// These are always simple C language options.
-  LangOptions MMapLangOpts;
-
   /// The module that the main source file is associated with (the module
   /// named LangOpts::CurrentModule, if we've loaded it).
   Module *SourceModule = nullptr;

diff  --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index e6985a40433ec..ea142bcc70f8f 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -354,7 +354,6 @@ ModuleMap::ModuleMap(SourceManager &SourceMgr, 
DiagnosticsEngine &Diags,
                      HeaderSearch &HeaderInfo)
     : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target),
       HeaderInfo(HeaderInfo) {
-  MMapLangOpts.LineComment = true;
 }
 
 ModuleMap::~ModuleMap() = default;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to