[cfe-commits] r94753 - in /cfe/trunk/lib/CodeGen: CGDebugInfo.cpp CGDebugInfo.h

Devang Patel dpatel at apple.com
Thu Jan 28 10:21:01 PST 2010


Author: dpatel
Date: Thu Jan 28 12:21:00 2010
New Revision: 94753

URL: http://llvm.org/viewvc/llvm-project?rev=94753&view=rev
Log:
s/FunctionNames/DebugInfoNames/g

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
    cfe/trunk/lib/CodeGen/CGDebugInfo.h

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=94753&r1=94752&r2=94753&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Thu Jan 28 12:21:00 2010
@@ -78,7 +78,7 @@
   std::string NS = FD->getNameAsString();
 
   // Copy this name on the side and use its reference.
-  char *StrPtr = FunctionNames.Allocate<char>(NS.length());
+  char *StrPtr = DebugInfoNames.Allocate<char>(NS.length());
   memcpy(StrPtr, NS.data(), NS.length());
   return llvm::StringRef(StrPtr, NS.length());
 }
@@ -716,7 +716,7 @@
   std::string Name = "_vptr$" + Decl->getNameAsString();
 
   // Copy this name on the side and use its reference.
-  char *StrPtr = FunctionNames.Allocate<char>(Name.length());
+  char *StrPtr = DebugInfoNames.Allocate<char>(Name.length());
   memcpy(StrPtr, Name.data(), Name.length());
   return llvm::StringRef(StrPtr, Name.length());
 }

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.h?rev=94753&r1=94752&r2=94753&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.h (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.h Thu Jan 28 12:21:00 2010
@@ -62,9 +62,9 @@
 
   std::vector<llvm::TrackingVH<llvm::MDNode> > RegionStack;
 
-  /// FunctionNames - This is a storage for function names that are
+  /// DebugInfoNames - This is a storage for names that are
   /// constructed on demand. For example, C++ destructors, C++ operators etc..
-  llvm::BumpPtrAllocator FunctionNames;
+  llvm::BumpPtrAllocator DebugInfoNames;
 
   llvm::DenseMap<const FunctionDecl *, llvm::WeakVH> SPCache;
 





More information about the cfe-commits mailing list