rsmith added a comment.

Seems reasonable to store this with the token. Do you have performance data?


================
Comment at: include/clang/Serialization/ASTReader.h:616
+  /// \brief Token literal data loaded and owned by us.
+  std::vector<std::string *> TokenLiteralDataLoaded;
+
----------------
Remove this use pointers directly into blob data from the token record (or 
BumpPtrAllocate the strings using the preprocessor's allocator if there's some 
reason you can't use blob data).


================
Comment at: lib/Serialization/ASTWriter.cpp:4360
 
   // FIXME: When reading literal tokens, reconstruct the literal pointer
   // if it is needed.
----------------
Remove this FIXME


https://reviews.llvm.org/D34984



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D34984: S... Vassil Vassilev via Phabricator via cfe-commits
    • [PATCH] D349... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D349... Vassil Vassilev via Phabricator via cfe-commits

Reply via email to