]> granicus.if.org Git - clang/commitdiff
s/FunctionNames/DebugInfoNames/g
authorDevang Patel <dpatel@apple.com>
Thu, 28 Jan 2010 18:21:00 +0000 (18:21 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 28 Jan 2010 18:21:00 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94753 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h

index f9a40cb0b5fa059fa78434d3564b5219a97f8cd0..7d2b4cd75030696f09ae5a87dde8255da619322e 100644 (file)
@@ -78,7 +78,7 @@ llvm::StringRef CGDebugInfo::getFunctionName(const FunctionDecl *FD) {
   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 @@ llvm::StringRef CGDebugInfo::getVtableName(const CXXRecordDecl *Decl) {
   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());
 }
index ac75ac02319ee05fb5bce587c245ac8d8eb784e3..1c0bd1969b9921010f18188fc12354615463bcb3 100644 (file)
@@ -62,9 +62,9 @@ class CGDebugInfo {
 
   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;