Internals: More use of unordered_map/set. No functional change intended.

This commit is contained in:
Wilson Snyder
2017-10-18 18:22:58 -04:00
parent fbbbe4ec87
commit cc0b780412
18 changed files with 36 additions and 29 deletions
+2 -1
View File
@@ -26,6 +26,7 @@
#include <iomanip>
#include <vector>
#include <algorithm>
#include VL_INCLUDE_UNORDERED_SET
#include "V3Ast.h"
#include "V3File.h"
@@ -69,7 +70,7 @@ void AstNodeClassDType::repairMemberCache() {
}
const char* AstNodeClassDType::broken() const {
set<AstMemberDType*> exists;
vl_unordered_set<AstMemberDType*> exists;
for (AstMemberDType* itemp = membersp(); itemp; itemp=itemp->nextp()->castMemberDType()) {
exists.insert(itemp);
}