[cfe-commits] r71996 - in /cfe/trunk: include/clang/Frontend/InitPreprocessor.h lib/Frontend/InitPreprocessor.cpp tools/clang-cc/clang-cc.cpp
Eli Friedman
eli.friedman at gmail.com
Mon May 18 00:39:40 PDT 2009
Author: efriedma
Date: Mon May 18 02:39:39 2009
New Revision: 71996
URL: http://llvm.org/viewvc/llvm-project?rev=71996&view=rev
Log:
Remove unused parameter.
Modified:
cfe/trunk/include/clang/Frontend/InitPreprocessor.h
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/include/clang/Frontend/InitPreprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/InitPreprocessor.h?rev=71996&r1=71995&r2=71996&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/InitPreprocessor.h (original)
+++ cfe/trunk/include/clang/Frontend/InitPreprocessor.h Mon May 18 02:39:39 2009
@@ -63,7 +63,6 @@
/// 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
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=71996&r1=71995&r2=71996&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Mon May 18 02:39:39 2009
@@ -429,7 +429,6 @@
/// 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;
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=71996&r1=71995&r2=71996&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Mon May 18 02:39:39 2009
@@ -1318,7 +1318,6 @@
namespace {
class VISIBILITY_HIDDEN DriverPreprocessorFactory : public PreprocessorFactory {
- const std::string &InFile;
Diagnostic &Diags;
const LangOptions &LangInfo;
TargetInfo &Target;
@@ -1326,11 +1325,10 @@
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 @@
PreprocessorInitOptions InitOpts;
InitializePreprocessorInitOptions(InitOpts);
- if (InitializePreprocessor(*PP, InFile, InitOpts))
+ if (InitializePreprocessor(*PP, InitOpts))
return 0;
std::string ErrStr;
@@ -2019,7 +2017,7 @@
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());
More information about the cfe-commits
mailing list