diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-03-17 05:20:12 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-03-17 05:20:12 +0000 |
commit | 1ace169c3d2ffd6596e0533c37df206430e8b707 (patch) | |
tree | 475fd33e7727d4a2ad21e230b92d8b70c5cc6313 | |
parent | 1aa7f7a997721b8baad6f734e3498ee5bebdd984 (diff) | |
download | external_llvm-1ace169c3d2ffd6596e0533c37df206430e8b707.zip external_llvm-1ace169c3d2ffd6596e0533c37df206430e8b707.tar.gz external_llvm-1ace169c3d2ffd6596e0533c37df206430e8b707.tar.bz2 |
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
-rw-r--r-- | lib/Analysis/MemoryBuiltins.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index abec2cb..769c68c 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -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. |