mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add comments for the demanglings. Correct mangled form of operator delete!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1aa7f7a997
commit
1ace169c3d
@ -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