forked from OSchip/llvm-project
parent
b27ec09a7e
commit
181aaee165
|
@ -69,9 +69,9 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
/// InitializePreprocessor - Initialize the preprocessor getting it and the
|
/// InitializePreprocessor - Initialize the preprocessor getting it and the
|
||||||
/// environment ready to process a single file. This returns true on error.
|
/// environment ready to process a single file.
|
||||||
///
|
///
|
||||||
bool InitializePreprocessor(Preprocessor &PP,
|
void InitializePreprocessor(Preprocessor &PP,
|
||||||
const PreprocessorInitOptions& InitOptions);
|
const PreprocessorInitOptions& InitOptions);
|
||||||
|
|
||||||
} // end namespace clang
|
} // end namespace clang
|
||||||
|
|
|
@ -442,7 +442,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
|
||||||
/// InitializePreprocessor - Initialize the preprocessor getting it and the
|
/// InitializePreprocessor - Initialize the preprocessor getting it and the
|
||||||
/// environment ready to process a single file. This returns true on error.
|
/// environment ready to process a single file. This returns true on error.
|
||||||
///
|
///
|
||||||
bool clang::InitializePreprocessor(Preprocessor &PP,
|
void clang::InitializePreprocessor(Preprocessor &PP,
|
||||||
const PreprocessorInitOptions &InitOpts) {
|
const PreprocessorInitOptions &InitOpts) {
|
||||||
std::vector<char> PredefineBuffer;
|
std::vector<char> PredefineBuffer;
|
||||||
|
|
||||||
|
@ -488,7 +488,4 @@ bool clang::InitializePreprocessor(Preprocessor &PP,
|
||||||
// Null terminate PredefinedBuffer and add it.
|
// Null terminate PredefinedBuffer and add it.
|
||||||
PredefineBuffer.push_back(0);
|
PredefineBuffer.push_back(0);
|
||||||
PP.setPredefines(&PredefineBuffer[0]);
|
PP.setPredefines(&PredefineBuffer[0]);
|
||||||
|
|
||||||
// Once we've read this, we're done.
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1251,8 +1251,7 @@ public:
|
||||||
|
|
||||||
PreprocessorInitOptions InitOpts;
|
PreprocessorInitOptions InitOpts;
|
||||||
InitializePreprocessorInitOptions(InitOpts);
|
InitializePreprocessorInitOptions(InitOpts);
|
||||||
if (InitializePreprocessor(*PP, InitOpts))
|
InitializePreprocessor(*PP, InitOpts);
|
||||||
return 0;
|
|
||||||
|
|
||||||
return PP.take();
|
return PP.take();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue