summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-01-21 13:04:33 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-01-21 13:04:33 +0000
commited765fe019e28afd017216786ef342b50ac0ebfb (patch)
treea0607afc7979b0190084ee4b1690fd1cd494c51f /utils
parentab0f3cbb292c8d6ebc67724bba691715bb272f69 (diff)
downloadexternal_llvm-ed765fe019e28afd017216786ef342b50ac0ebfb.zip
external_llvm-ed765fe019e28afd017216786ef342b50ac0ebfb.tar.gz
external_llvm-ed765fe019e28afd017216786ef342b50ac0ebfb.tar.bz2
Change the hook API back to prevent memory leaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/LLVMCConfigurationEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp
index 3de4d37..ec023ba 100644
--- a/utils/TableGen/LLVMCConfigurationEmitter.cpp
+++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -1866,7 +1866,7 @@ void EmitHookDeclarations(const ToolDescriptions& ToolDescs, std::ostream& O) {
O << "namespace hooks {\n";
for (StringMap<unsigned>::const_iterator B = HookNames.begin(),
E = HookNames.end(); B != E; ++B) {
- O << Indent1 << "const char* " << B->first() << "(";
+ O << Indent1 << "std::string " << B->first() << "(";
for (unsigned i = 0, j = B->second; i < j; ++i) {
O << "const char* Arg" << i << (i+1 == j ? "" : ", ");