[PATCH] D73738: [Clang][Bundler][NFC] Replace SmallString<...> with StringRef
Sergey Dmitriev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 12:43:57 PST 2020
sdmitriev created this revision.
sdmitriev added a reviewer: ABataev.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73738
Files:
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Index: clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
===================================================================
--- clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -530,10 +530,10 @@
// Create an intermediate temporary file to save object after the first
// llvm-objcopy run.
- Expected<SmallString<128u>> IntermediateObjOrErr = TempFiles.Create(None);
+ Expected<StringRef> IntermediateObjOrErr = TempFiles.Create(None);
if (!IntermediateObjOrErr)
return IntermediateObjOrErr.takeError();
- const SmallString<128u> &IntermediateObj = *IntermediateObjOrErr;
+ StringRef IntermediateObj = *IntermediateObjOrErr;
// Compose llvm-objcopy command line for add target objects' sections.
BumpPtrAllocator Alloc;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73738.241547.patch
Type: text/x-patch
Size: 850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200130/66c73de6/attachment.bin>
More information about the cfe-commits
mailing list