diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-14 18:21:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-14 18:21:58 +0000 |
commit | 4f8dd9de31b1e57bac38107ecb97c84e7841f049 (patch) | |
tree | da039898573db62eb99afc4c537d795df89279b2 | |
parent | 8561721bcecbab6d97e8a66a1910e182c1f1b5cc (diff) | |
download | bcm5719-llvm-4f8dd9de31b1e57bac38107ecb97c84e7841f049.tar.gz bcm5719-llvm-4f8dd9de31b1e57bac38107ecb97c84e7841f049.zip |
though it isn't the case here, the key of a StringMap can
conceptually have nuls in it.
llvm-svn: 135165
-rw-r--r-- | llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index 090faf50855..cd0cbeb1c6b 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/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 << "("; |