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:
parent
0e4a3addf0
commit
1376469a61
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue