aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Driver/clang.cpp5
-rw-r--r--include/clang/Lex/Preprocessor.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 20900c2f6b..1bb4a1aa04 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -940,8 +940,7 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile,
/// ProcessInputFile - Process a single input file with the specified state.
///
-static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID,
- const std::string &InFile,
+static void ProcessInputFile(Preprocessor &PP, const std::string &InFile,
TextDiagnostics &OurDiagnosticClient) {
ASTConsumer* Consumer = NULL;
@@ -1180,7 +1179,7 @@ int main(int argc, char **argv) {
SourceMgr.setMainFileID(MainFileID);
- ProcessInputFile(PP, MainFileID, InFile, *DiagClient);
+ ProcessInputFile(PP, InFile, *DiagClient);
HeaderInfo.ClearFileInfo();
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index a92962f423..0ad83f71f6 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -216,7 +216,7 @@ public:
void AddPragmaHandler(const char *Namespace, PragmaHandler *Handler);
/// EnterMainSourceFile - Enter the specified FileID as the main source file,
- /// which implicitly adds the builting defines etc.
+ /// which implicitly adds the builtin defines etc.
void EnterMainSourceFile(unsigned CurFileID);