]> granicus.if.org Git - clang/commitdiff
Remove unused LangOpts private variable in HeaderSearch.
authorSamuel Antao <sfantao@us.ibm.com>
Wed, 27 Apr 2016 22:28:32 +0000 (22:28 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Wed, 27 Apr 2016 22:28:32 +0000 (22:28 +0000)
Was causing warnings during the build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267805 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/HeaderSearch.h
lib/Lex/HeaderSearch.cpp

index 458f07e5e44ecfae0601676be92f7885616c62dc..6d7817f862321356b87d4abb69d2191fcbaad3a0 100644 (file)
@@ -241,8 +241,6 @@ class HeaderSearch {
   unsigned NumMultiIncludeFileOptzn;
   unsigned NumFrameworkLookups, NumSubFrameworkLookups;
 
-  const LangOptions &LangOpts;
-
   // HeaderSearch doesn't support default or copy construction.
   HeaderSearch(const HeaderSearch&) = delete;
   void operator=(const HeaderSearch&) = delete;
index 4e88248607bdd05362c9c833cf6a23fac7af7196..e989e3dcdd4795d8abbfad66d66ca9673192b8a5 100644 (file)
@@ -56,8 +56,7 @@ HeaderSearch::HeaderSearch(IntrusiveRefCntPtr<HeaderSearchOptions> HSOpts,
                            const LangOptions &LangOpts,
                            const TargetInfo *Target)
     : HSOpts(HSOpts), Diags(Diags), FileMgr(SourceMgr.getFileManager()),
-      FrameworkMap(64), ModMap(SourceMgr, Diags, LangOpts, Target, *this),
-      LangOpts(LangOpts) {
+      FrameworkMap(64), ModMap(SourceMgr, Diags, LangOpts, Target, *this) {
   AngledDirIdx = 0;
   SystemDirIdx = 0;
   NoCurDirSearch = false;