We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e501c08 commit 7d23548Copy full SHA for 7d23548
lib/PhasarLLVM/ControlFlow/LLVMVFTableProvider.cpp
@@ -16,6 +16,15 @@
16
17
using namespace psr;
18
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
+
28
static std::vector<const llvm::Function *> getVirtualFunctions(
29
const llvm::StringMap<const llvm::GlobalVariable *> &ClearNameTVMap,
30
const llvm::DIType *Type) {
0 commit comments