mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 05:10:41 +00:00
Add comments for the demanglings. Correct mangled form of operator delete!
llvm-svn: 127801
This commit is contained in:
parent
0639b29656
commit
50afb5a262
@ -38,8 +38,10 @@ static bool isMallocCall(const CallInst *CI) {
|
||||
if (Callee == 0 || !Callee->isDeclaration())
|
||||
return false;
|
||||
if (Callee->getName() != "malloc" &&
|
||||
Callee->getName() != "_Znwj" && Callee->getName() != "_Znwm" &&
|
||||
Callee->getName() != "_Znaj" && Callee->getName() != "_Znam")
|
||||
Callee->getName() != "_Znwj" && // operator new(unsigned int)
|
||||
Callee->getName() != "_Znwm" && // operator new(unsigned long)
|
||||
Callee->getName() != "_Znaj" && // operator new[](unsigned int)
|
||||
Callee->getName() != "_Znam") // operator new[](unsigned long)
|
||||
return false;
|
||||
|
||||
// Check malloc prototype.
|
||||
@ -197,8 +199,8 @@ const CallInst *llvm::isFreeCall(const Value *I) {
|
||||
return 0;
|
||||
|
||||
if (Callee->getName() != "free" &&
|
||||
Callee->getName() != "_Zdlj" && Callee->getName() != "_Zdlm" &&
|
||||
Callee->getName() != "_Zdaj" && Callee->getName() != "_Zdam")
|
||||
Callee->getName() != "_ZdlPv" && // operator delete(void*)
|
||||
Callee->getName() != "_ZdaPv") // operator delete[](void*)
|
||||
return 0;
|
||||
|
||||
// Check free prototype.
|
||||
|
Loading…
Reference in New Issue
Block a user