Updated our use of clang::Preprocessor to reflect
authorSean Callanan <scallanan@apple.com>
Fri, 1 May 2015 00:19:44 +0000 (00:19 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 1 May 2015 00:19:44 +0000 (00:19 +0000)
a change in the API used to get macros.

llvm-svn: 236292

lldb/source/Expression/ClangModulesDeclVendor.cpp

index 46864c6..97a4d08 100644 (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();