[PATCH] D26928: Object: Simplify the IRObjectFile symbol iterator implementation.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 16:34:42 PST 2016


mehdi_amini accepted this revision.
mehdi_amini added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: llvm/include/llvm/Object/IRObjectFile.h:32
   std::unique_ptr<Mangler> Mang;
-  std::vector<std::pair<std::string, uint32_t>> AsmSymbols;
+  typedef std::pair<std::string, uint32_t> AsmSymbol;
+  SpecificBumpPtrAllocator<AsmSymbol> AsmSymbols;
----------------
I haven't tracked how the AsmSymbol are passed in, but couldn't we keep a StringRef instead of a std::string?
(I know it is not directly related to your patch)


https://reviews.llvm.org/D26928





More information about the llvm-commits mailing list