[llvm-commits] [llvm] r135165 - /llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp

Chris Lattner sabre at nondot.org
Thu Jul 14 11:21:58 PDT 2011


Author: lattner
Date: Thu Jul 14 13:21:58 2011
New Revision: 135165

URL: http://llvm.org/viewvc/llvm-project?rev=135165&view=rev
Log:
though it isn't the case here, the key of a StringMap can
conceptually have nuls in it.

Modified:
    llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp

Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=135165&r1=135164&r2=135165&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Thu Jul 14 13:21:58 2011
@@ -2969,8 +2969,8 @@
 
   for (HookInfoMap::const_iterator B = HookNames.begin(),
          E = HookNames.end(); B != E; ++B) {
-    const char* HookName = B->first();
-    const HookInfo& Info = B->second;
+    StringRef HookName = B->first();
+    const HookInfo &Info = B->second;
 
     O.indent(Indent1) << "std::string " << HookName << "(";
 





More information about the llvm-commits mailing list