Bring back macro removal (Sorry Cristina).

This commit is contained in:
Vassil Vassilev 2014-02-07 14:22:13 +01:00 committed by sftnight
parent 4b10109210
commit c5aee224bd

View File

@ -825,10 +825,15 @@ namespace cling {
// Get rid of the declaration. If the declaration has name we should
// heal the lookup tables as well
Successful = DeclRev.RevertDecl(*Di) && Successful;
}
}
for (Transaction::const_reverse_macros_iterator MI = T->rmacros_begin(),
ME = T->rmacros_end(); MI != ME; ++MI) {
// Get rid of the macro definition
Successful = DeclRev.RevertMacro(*MI) && Successful;
}
#ifndef NDEBUG
assert(Successful && "Cannot handle that yet!");
#endif