[llvm] r277091 - Fixed comment

Piotr Padlewski via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 17:30:07 PDT 2016


Author: prazek
Date: Thu Jul 28 19:30:07 2016
New Revision: 277091

URL: http://llvm.org/viewvc/llvm-project?rev=277091&view=rev
Log:
Fixed comment

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h?rev=277091&r1=277090&r2=277091&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h Thu Jul 28 19:30:07 2016
@@ -92,15 +92,12 @@ private:
   SortedNodesTy getSortedNodes();
 
 private:
-  /// FIXME: Change map keys to std::string/StringRef to avoid using pointers
-  /// to dead functions.
   /// This map manage life of all InlineGraphNodes. Unique pointer to
   /// InlineGraphNode used since the node pointers are also saved in the
   /// InlinedCallees vector. If it would store InlineGraphNode instead then the
   /// address of the node would not be invariant.
   NodesMapTy NodesMap;
   /// Non external functions that have some other function inlined inside.
-  /// Should not dereference pointers because Functions might be deleted.
   std::vector<std::string> NonImportedCallers;
   int AllFunctions = 0;
   int ImportedFunctions = 0;




More information about the llvm-commits mailing list