summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instruction.cpp
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
commit762195bd01abfd14476f984fbe730a944c4bcd86 (patch)
treebfdc25cd318012301154cf433612d6d976e78572 /llvm/lib/VMCore/Instruction.cpp
parent95020dfeda2453914bdc582ac6ca53386e355571 (diff)
downloadbcm5719-llvm-762195bd01abfd14476f984fbe730a944c4bcd86.tar.gz
bcm5719-llvm-762195bd01abfd14476f984fbe730a944c4bcd86.zip
Rename MallocHelper as MallocFreeHelper, since it now also identifies calls to free()
llvm-svn: 85181
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r--llvm/lib/VMCore/Instruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp
index 391ba7bea5e..def7b3b4ac7 100644
--- a/llvm/lib/VMCore/Instruction.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud