mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -737,11 +737,11 @@ GlobalVariable *GCOVProfiler::buildEdgeLookupTable(
|
||||
Edge += Successors;
|
||||
}
|
||||
|
||||
ArrayRef<Constant*> V(&EdgeTable[0], TableSize);
|
||||
GlobalVariable *EdgeTableGV =
|
||||
new GlobalVariable(
|
||||
*M, EdgeTableTy, true, GlobalValue::InternalLinkage,
|
||||
ConstantArray::get(EdgeTableTy, V),
|
||||
ConstantArray::get(EdgeTableTy,
|
||||
makeArrayRef(&EdgeTable[0],TableSize)),
|
||||
"__llvm_gcda_edge_table");
|
||||
EdgeTableGV->setUnnamedAddr(true);
|
||||
return EdgeTableGV;
|
||||
|
Reference in New Issue
Block a user