From: Chris Lattner Date: Thu, 14 Jul 2011 18:21:58 +0000 (+0000) Subject: though it isn't the case here, the key of a StringMap can X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=154c535888e41a0ee822a2ff76edc57ef91c7aeb;p=oota-llvm.git though it isn't the case here, the key of a StringMap can conceptually have nuls in it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135165 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index 090faf50855..cd0cbeb1c6b 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -2969,8 +2969,8 @@ void EmitHookDeclarations(const ToolDescriptions& ToolDescs, 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 << "(";