]> granicus.if.org Git - clang/commitdiff
Remove unused parameter.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 18 May 2009 07:39:39 +0000 (07:39 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 18 May 2009 07:39:39 +0000 (07:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71996 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/InitPreprocessor.h
lib/Frontend/InitPreprocessor.cpp
tools/clang-cc/clang-cc.cpp

index a51498b194507b656d4db76e9f549f191a529d6d..3943289f9dac9f223388b942a26f38f81bd1f12b 100644 (file)
@@ -63,7 +63,6 @@ public:
 /// environment ready to process a single file. This returns true on error.
 ///
 bool InitializePreprocessor(Preprocessor &PP,
-                            const std::string &InFile,
                             const PreprocessorInitOptions& InitOptions);
 
 } // end namespace clang
index 102f385f7e054c7da386b2befc8b639f8b5f7ff3..1ad9d5c8d3b83c27afb13f51a558072b7db44a85 100644 (file)
@@ -429,7 +429,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
 /// environment ready to process a single file. This returns true on error.
 ///
 bool InitializePreprocessor(Preprocessor &PP,
-                            const std::string &InFile,
                             const PreprocessorInitOptions& InitOpts) {
   std::vector<char> PredefineBuffer;
   
index a7f65902d8fe89cf6a5fbb6390b9318918651169..588ed2f76a107db4d7eba6406ca5fbd719ad7e0e 100644 (file)
@@ -1318,7 +1318,6 @@ void InitializePreprocessorInitOptions(PreprocessorInitOptions &InitOpts)
 
 namespace {
 class VISIBILITY_HIDDEN DriverPreprocessorFactory : public PreprocessorFactory {
-  const std::string &InFile;
   Diagnostic        &Diags;
   const LangOptions &LangInfo;
   TargetInfo        &Target;
@@ -1326,11 +1325,10 @@ class VISIBILITY_HIDDEN DriverPreprocessorFactory : public PreprocessorFactory {
   HeaderSearch      &HeaderInfo;
   
 public:
-  DriverPreprocessorFactory(const std::string &infile,
-                            Diagnostic &diags, const LangOptions &opts,
+  DriverPreprocessorFactory(Diagnostic &diags, const LangOptions &opts,
                             TargetInfo &target, SourceManager &SM,
                             HeaderSearch &Headers)  
-  : InFile(infile), Diags(diags), LangInfo(opts), Target(target),
+  : Diags(diags), LangInfo(opts), Target(target),
     SourceMgr(SM), HeaderInfo(Headers) {}
   
   
@@ -1371,7 +1369,7 @@ public:
 
     PreprocessorInitOptions InitOpts;
     InitializePreprocessorInitOptions(InitOpts);
-    if (InitializePreprocessor(*PP, InFile, InitOpts))
+    if (InitializePreprocessor(*PP, InitOpts))
       return 0;
 
     std::string ErrStr;
@@ -2019,7 +2017,7 @@ int main(int argc, char **argv) {
     InitializeIncludePaths(argv[0], HeaderInfo, FileMgr, LangInfo);
     
     // Set up the preprocessor with these options.
-    DriverPreprocessorFactory PPFactory(InFile, Diags, LangInfo, *Target,
+    DriverPreprocessorFactory PPFactory(Diags, LangInfo, *Target,
                                         *SourceMgr.get(), HeaderInfo);
     
     llvm::OwningPtr<Preprocessor> PP(PPFactory.CreatePreprocessor());