This revision was automatically updated to reflect the committed changes.
Closed by commit rG5be2ca29217a: [Clang][Bundler][NFC] Replace 
SmallString<...> with StringRef (authored by sdmitriev).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73738/new/

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;


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;
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to