Updated our use of clang::Preprocessor to reflect

a change in the API used to get macros.

llvm-svn: 236292
This commit is contained in:
Sean Callanan 2015-05-01 00:19:44 +00:00
parent 0e4a3addf0
commit 1376469a61
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ ClangModulesDeclVendorImpl::ForEachMacro(const ClangModulesDeclVendor::ModuleVec
ssize_t found_priority = -1;
clang::MacroInfo *info = nullptr;
for (clang::ModuleMacro *macro : m_compiler_instance->getPreprocessor().getMacroDefinition(ii).getModuleMacros())
for (clang::ModuleMacro *macro : m_compiler_instance->getPreprocessor().getLeafModuleMacros(ii))
{
clang::Module *module = macro->getOwningModule();