[llvm] 5bacac9 - llvm-reduce: Use StringRef/ArrayRef
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 19:34:05 PST 2023
Author: Matt Arsenault
Date: 2023-01-17T22:33:56-05:00
New Revision: 5bacac9cb63cfe5108eb369edc891f716d2d54ad
URL: https://github.com/llvm/llvm-project/commit/5bacac9cb63cfe5108eb369edc891f716d2d54ad
DIFF: https://github.com/llvm/llvm-project/commit/5bacac9cb63cfe5108eb369edc891f716d2d54ad.diff
LOG: llvm-reduce: Use StringRef/ArrayRef
Added:
Modified:
llvm/tools/llvm-reduce/deltas/Delta.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/Delta.cpp b/llvm/tools/llvm-reduce/deltas/Delta.cpp
index f1b342e5a2f3..ae4da1a3bbf5 100644
--- a/llvm/tools/llvm-reduce/deltas/Delta.cpp
+++ b/llvm/tools/llvm-reduce/deltas/Delta.cpp
@@ -190,11 +190,11 @@ CheckChunk(const Chunk &ChunkToCheckForUninterestingness,
static SmallString<0> ProcessChunkFromSerializedBitcode(
const Chunk &ChunkToCheckForUninterestingness, const TestRunner &Test,
ReductionFunc ExtractChunksFromModule, const DenseSet<Chunk> &UninterestingChunks,
- const std::vector<Chunk> &ChunksStillConsideredInteresting,
- const SmallString<0> &OriginalBC, std::atomic<bool> &AnyReduced) {
+ ArrayRef<Chunk> ChunksStillConsideredInteresting,
+ StringRef OriginalBC, std::atomic<bool> &AnyReduced) {
LLVMContext Ctx;
auto CloneMMM = std::make_unique<ReducerWorkItem>();
- MemoryBufferRef Data(StringRef(OriginalBC), "<bc file>");
+ MemoryBufferRef Data(OriginalBC, "<bc file>");
readBitcode(*CloneMMM, Data, Ctx, Test.getToolName());
SmallString<0> Result;
More information about the llvm-commits
mailing list