// The macros in the PP section are a PP_MACRO_* instance followed by a
// list of PP_TOKEN instances for each token in the definition.
+ // FIXME: TEMP HACK UNTIL WE HAVE IDENTIFIER INFO IDs.
+ PP_MACRO_NAME = 4,
+
/// \brief An object-like macro definition.
/// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed]
PP_MACRO_OBJECT_LIKE = 1,
IdentifierInfo *II = I->first;
+ // FIXME: Emit a PP_MACRO_NAME for testing. This should be removed when we
+ // have identifierinfo id's.
+ for (unsigned i = 0, e = II->getLength(); i != e; ++i)
+ Record.push_back(II->getName()[i]);
+ S.EmitRecord(pch::PP_MACRO_NAME, Record);
+ Record.clear();
+
// FIXME: Output the identifier Info ID #!
Record.push_back((intptr_t)II);
Record.push_back(MI->getDefinitionLoc().getRawEncoding());