diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-06-22 09:24:39 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-06-22 09:24:39 +0000 |
commit | 267010864e139781ef5949939e081c41f954de0a (patch) | |
tree | a70c0e226a9540d345c8da8c97e59e402b8e873a /lib/Transforms | |
parent | a0c138429e101f573d43740322245c1d5b8b04a0 (diff) | |
download | external_llvm-267010864e139781ef5949939e081c41f954de0a.zip external_llvm-267010864e139781ef5949939e081c41f954de0a.tar.gz external_llvm-267010864e139781ef5949939e081c41f954de0a.tar.bz2 |
Replace the existing forms of ConstantArray::get() with a single form
that takes an ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Instrumentation/GCOVProfiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index b902213..07d69e8 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -561,11 +561,11 @@ GlobalVariable *GCOVProfiler::buildEdgeLookupTable( Edge += Successors; } + ArrayRef<Constant*> V(&EdgeTable[0], Succs.size() * Preds.size()); GlobalVariable *EdgeTableGV = new GlobalVariable( *M, EdgeTableTy, true, GlobalValue::InternalLinkage, - ConstantArray::get(EdgeTableTy, - &EdgeTable[0], Succs.size() * Preds.size()), + ConstantArray::get(EdgeTableTy, V), "__llvm_gcda_edge_table"); EdgeTableGV->setUnnamedAddr(true); return EdgeTableGV; |