mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-24 01:58:21 +00:00
[COFF] SmallVector<char, 0> -> SmallString<0>.
This way we're consistent between ELF and COFF. llvm-svn: 265885
This commit is contained in:
parent
fbb63b8028
commit
eeae124faf
@ -420,7 +420,7 @@ std::vector<ObjectFile *> SymbolTable::createLTOObjects(LTOCodeGenerator *CG) {
|
||||
// Use std::list to avoid invalidation of pointers in OSPtrs.
|
||||
std::list<raw_svector_ostream> OSs;
|
||||
std::vector<raw_pwrite_stream *> OSPtrs;
|
||||
for (SmallVector<char, 0> &Obj : Objs) {
|
||||
for (SmallString<0> &Obj : Objs) {
|
||||
OSs.emplace_back(Obj);
|
||||
OSPtrs.push_back(&OSs.back());
|
||||
}
|
||||
@ -429,7 +429,7 @@ std::vector<ObjectFile *> SymbolTable::createLTOObjects(LTOCodeGenerator *CG) {
|
||||
error(""); // compileOptimized() should have emitted any error message.
|
||||
|
||||
std::vector<ObjectFile *> ObjFiles;
|
||||
for (SmallVector<char, 0> &Obj : Objs) {
|
||||
for (SmallString<0> &Obj : Objs) {
|
||||
auto *ObjFile = new ObjectFile(
|
||||
MemoryBufferRef(StringRef(Obj.data(), Obj.size()), "<LTO object>"));
|
||||
Files.emplace_back(ObjFile);
|
||||
|
@ -115,7 +115,7 @@ private:
|
||||
std::vector<std::future<InputFile *>> ObjectQueue;
|
||||
|
||||
std::vector<BitcodeFile *> BitcodeFiles;
|
||||
std::vector<SmallVector<char, 0>> Objs;
|
||||
std::vector<SmallString<0>> Objs;
|
||||
llvm::BumpPtrAllocator Alloc;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user