summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/ProfilingUtils.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-03 22:06:33 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-03 22:06:33 +0000
commitebbc0e9bbf51e4ee583d7603b033813566c62c3f (patch)
treef1914e49855993992ce68d74508094d892e55061 /lib/Transforms/Instrumentation/ProfilingUtils.h
parentc03eb7b923d4ba40a647ffd364cd2e89fc22301d (diff)
downloadllvm-ebbc0e9bbf51e4ee583d7603b033813566c62c3f.tar.gz
llvm-ebbc0e9bbf51e4ee583d7603b033813566c62c3f.tar.bz2
llvm-ebbc0e9bbf51e4ee583d7603b033813566c62c3f.tar.xz
In InsertProfilingInitCall(), make it legal to pass in a null array, in
which case you'll get a null array and zero passed to the profiling function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilingUtils.h')
-rw-r--r--lib/Transforms/Instrumentation/ProfilingUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilingUtils.h b/lib/Transforms/Instrumentation/ProfilingUtils.h
index 7e8b85f4db..17e234806c 100644
--- a/lib/Transforms/Instrumentation/ProfilingUtils.h
+++ b/lib/Transforms/Instrumentation/ProfilingUtils.h
@@ -24,7 +24,7 @@ namespace llvm {
class BasicBlock;
void InsertProfilingInitCall(Function *MainFn, const char *FnName,
- GlobalValue *Arr);
+ GlobalValue *Arr = 0);
void IncrementCounterInBlock(BasicBlock *BB, unsigned CounterNum,
ConstantPointerRef *CounterArray);
}