mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[Clang][Bundler][NFC] Replace SmallString<...> with StringRef
Reviewers: ABataev Reviewed By: ABataev Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73738
This commit is contained in:
@@ -530,10 +530,10 @@ public:
|
||||
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user