Skip to content

Commit 7d23548

Browse files
committed
mionr after rebase
1 parent e501c08 commit 7d23548

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/PhasarLLVM/ControlFlow/LLVMVFTableProvider.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616

1717
using namespace psr;
1818

19+
static std::string getTypeName(const llvm::DIType *DITy) {
20+
if (const auto *CompTy = llvm::dyn_cast<llvm::DICompositeType>(DITy)) {
21+
auto Ident = CompTy->getIdentifier();
22+
return Ident.empty() ? llvm::demangle(CompTy->getName().str())
23+
: llvm::demangle(Ident.str());
24+
}
25+
return llvm::demangle(DITy->getName().str());
26+
}
27+
1928
static std::vector<const llvm::Function *> getVirtualFunctions(
2029
const llvm::StringMap<const llvm::GlobalVariable *> &ClearNameTVMap,
2130
const llvm::DIType *Type) {

0 commit comments

Comments
 (0)