aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-10-26 23:58:56 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-10-26 23:58:56 +0000
commit43a4c67a86782f5f6ad5d80dbbf29ff23f3faa08 (patch)
tree692d335e6bb7703f68e228b05ff950df0d2f1466 /lib/VMCore
parentf9a7549471a1194f31d2627c8f0665eb88bb96fc (diff)
downloadexternal_llvm-43a4c67a86782f5f6ad5d80dbbf29ff23f3faa08.zip
external_llvm-43a4c67a86782f5f6ad5d80dbbf29ff23f3faa08.tar.gz
external_llvm-43a4c67a86782f5f6ad5d80dbbf29ff23f3faa08.tar.bz2
Rename MallocHelper as MallocFreeHelper, since it now also identifies calls to free()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Instruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp
index 391ba7b..def7b3b 100644
--- a/lib/VMCore/Instruction.cpp
+++ b/lib/VMCore/Instruction.cpp
@@ -302,7 +302,7 @@ bool Instruction::isUsedOutsideOfBlock(const BasicBlock *BB) const {
return false;
}
-// Code here matches isFreeCall from MallocHelper, which is not in VMCore.
+// Code here matches isFreeCall from MallocFreeHelper, which is not in VMCore.
static bool isFreeCall(const Value* I) {
const CallInst *CI = dyn_cast<CallInst>(I);
if (!CI)
@@ -407,7 +407,7 @@ bool Instruction::isCommutative(unsigned op) {
}
}
-// Code here matches isMalloc from MallocHelper, which is not in VMCore.
+// Code here matches isMalloc from MallocFreeHelper, which is not in VMCore.
static bool isMalloc(const Value* I) {
const CallInst *CI = dyn_cast<CallInst>(I);
if (!CI) {