Macro Registration (Migration issue for setMacroInfo function)

MacroInfo* RegisterMacro(Preprocessor &PP, const char *Name){
  // Get the identifier.
  IdentifierInfo *Id = PP.getIdentifierInfo(Name);

  // Mark it as being a macro that is builtin.
  MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation());

return MI;

Hi, we used to have this function to register Macros for our application,
however after we updated our clang to the latest version, the setMacroInfo
function do not exist any more. Anyone has any idea how we should do
it now with the latest version of clang? Thank you.