Fix very long module names, bug937.

This commit is contained in:
Wilson Snyder
2015-09-19 20:12:35 -04:00
parent 64748b7b1d
commit d0653f72e2
8 changed files with 112 additions and 1 deletions
+5
View File
@@ -28,6 +28,7 @@
#include "V3File.h"
#include "V3Global.h"
#include "V3Broken.h"
#include "V3String.h"
//======================================================================
// Statics
@@ -115,6 +116,10 @@ string AstNode::encodeName(const string& namein) {
out += hex;
}
}
// Shorten names
// TODO long term use VName in place of "string name"
VName vname(out);
out = vname.hashedName();
return out;
}