We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ca88e3 commit c477285Copy full SHA for c477285
1 file changed
lib/PhasarLLVM/TypeHierarchy/LLVMTypeHierarchy.cpp
@@ -294,12 +294,10 @@ LLVMTypeHierarchy::getSuperTypes(const llvm::StructType *Type) {
294
}
295
296
const llvm::StructType *LLVMTypeHierarchy::getType(std::string TypeName) const {
297
- if (ClearNameTypeMap.count(TypeName)) {
298
- return ClearNameTypeMap.at(TypeName);
299
- }
300
- auto ClearName = boost::core::demangle(TypeName.c_str());
301
- if (ClearNameTypeMap.count(ClearName)) {
302
- return ClearNameTypeMap.at(ClearName);
+ for (auto V : boost::make_iterator_range(boost::vertices(TypeGraph))) {
+ if (TypeGraph[V].Type->getName() == TypeName) {
+ return TypeGraph[V].Type;
+ }
303
304
return nullptr;
305
0 commit comments