diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-07 04:20:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-07 04:20:15 +0000 |
commit | 8863b985f1cf78a2fb62913e184dc45162853cf9 (patch) | |
tree | 95fb53eec9e1d1dc2e73f8fc5d7c968847694e0f /lib/Frontend/InitPreprocessor.cpp | |
parent | 750156aec27f66ddd53bf05bde34f147e73e7769 (diff) |
Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fix
filenames.
Also, move InitializePreprocessor to Utils.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | lib/Frontend/InitPreprocessor.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index b4b31c359f..75e475aa37 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -11,8 +11,9 @@ // //===----------------------------------------------------------------------===// -#include "clang/Frontend/InitPreprocessor.h" +#include "clang/Frontend/Utils.h" #include "clang/Basic/TargetInfo.h" +#include "clang/Frontend/PreprocessorOptions.h" #include "clang/Lex/Preprocessor.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/STLExtras.h" @@ -455,7 +456,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, /// environment ready to process a single file. This returns true on error. /// void clang::InitializePreprocessor(Preprocessor &PP, - const PreprocessorInitOptions &InitOpts) { + const PreprocessorOptions &InitOpts) { std::vector<char> PredefineBuffer; const char *LineDirective = "# 1 \"<built-in>\" 3\n"; @@ -474,7 +475,7 @@ void clang::InitializePreprocessor(Preprocessor &PP, LineDirective, LineDirective+strlen(LineDirective)); // Process #define's and #undef's in the order they are given. - for (PreprocessorInitOptions::macro_iterator I = InitOpts.macro_begin(), + for (PreprocessorOptions::macro_iterator I = InitOpts.macro_begin(), E = InitOpts.macro_end(); I != E; ++I) { if (I->second) // isUndef UndefineBuiltinMacro(PredefineBuffer, I->first.c_str()); @@ -484,12 +485,12 @@ void clang::InitializePreprocessor(Preprocessor &PP, // If -imacros are specified, include them now. These are processed before // any -include directives. - for (PreprocessorInitOptions::imacro_iterator I = InitOpts.imacro_begin(), + for (PreprocessorOptions::imacro_iterator I = InitOpts.imacro_begin(), E = InitOpts.imacro_end(); I != E; ++I) AddImplicitIncludeMacros(PredefineBuffer, *I); // Process -include directives. - for (PreprocessorInitOptions::include_iterator I = InitOpts.include_begin(), + for (PreprocessorOptions::include_iterator I = InitOpts.include_begin(), E = InitOpts.include_end(); I != E; ++I) { if (I->second) // isPTH AddImplicitIncludePTH(PredefineBuffer, PP, I->first); |