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 | 154c535888e41a0ee822a2ff76edc57ef91c7aeb (patch) | |
tree | 81e3e76332533c72ea731246a743279d1c9a6822 /utils | |
parent | 97d9730a59fbd4e656d2c34f3b92d2feb4d9d575 (diff) | |
download | llvm-154c535888e41a0ee822a2ff76edc57ef91c7aeb.tar.gz llvm-154c535888e41a0ee822a2ff76edc57ef91c7aeb.tar.bz2 llvm-154c535888e41a0ee822a2ff76edc57ef91c7aeb.tar.xz |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index 090faf5085..cd0cbeb1c6 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 << "("; |