File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 45
45
#include " SPIRVFunction.h"
46
46
#include " SPIRVInstruction.h"
47
47
#include " SPIRVMemAliasingINTEL.h"
48
+ #include " SPIRVNameMapEnum.h"
48
49
#include " SPIRVStream.h"
49
50
#include " SPIRVType.h"
50
51
@@ -299,13 +300,18 @@ void SPIRVEntry::addDecorate(SPIRVDecorate *Dec) {
299
300
auto *LinkageAttr = static_cast <const SPIRVDecorateLinkageAttr *>(Dec);
300
301
setName (LinkageAttr->getLinkageName ());
301
302
}
302
- SPIRVDBG (spvdbgs () << " [addDecorate] " << *Dec << ' \n ' ;)
303
+ SPIRVDBG (spvdbgs () << " [addDecorate] Add "
304
+ << SPIRVDecorationNameMap::map (Kind) << " to Id " << Id
305
+ << ' \n ' ;)
303
306
}
304
307
305
308
void SPIRVEntry::addDecorate (SPIRVDecorateId *Dec) {
306
- DecorateIds.insert (std::make_pair (Dec->getDecorateKind (), Dec));
309
+ auto Kind = Dec->getDecorateKind ();
310
+ DecorateIds.insert (std::make_pair (Kind, Dec));
307
311
Module->addDecorate (Dec);
308
- SPIRVDBG (spvdbgs () << " [addDecorateId] " << *Dec << ' \n ' ;)
312
+ SPIRVDBG (spvdbgs () << " [addDecorateId] Add"
313
+ << SPIRVDecorationNameMap::map (Kind) << " to Id " << Id
314
+ << ' \n ' ;)
309
315
}
310
316
311
317
void SPIRVEntry::addDecorate (Decoration Kind) {
You can’t perform that action at this time.
0 commit comments