summaryrefslogtreecommitdiff
path: root/tools
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
commitb6b514124d82fcd467210982389c001a7990b2e8 (patch)
treea0607afc7979b0190084ee4b1690fd1cd494c51f /tools
parenta298bb752572f03f3b65260a73cb39df02770075 (diff)
downloadllvm-b6b514124d82fcd467210982389c001a7990b2e8.tar.gz
llvm-b6b514124d82fcd467210982389c001a7990b2e8.tar.bz2
llvm-b6b514124d82fcd467210982389c001a7990b2e8.tar.xz
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 'tools')
-rw-r--r--tools/llvmc/doc/LLVMC-Reference.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvmc/doc/LLVMC-Reference.rst b/tools/llvmc/doc/LLVMC-Reference.rst
index 9eb927c165..53049d7b3c 100644
--- a/tools/llvmc/doc/LLVMC-Reference.rst
+++ b/tools/llvmc/doc/LLVMC-Reference.rst
@@ -565,7 +565,7 @@ or names in the configuration file. This can be easily achieved via
the hooks mechanism. To write your own hooks, just add their
definitions to the ``PluginMain.cpp`` or drop a ``.cpp`` file into the
your plugin directory. Hooks should live in the ``hooks`` namespace
-and have the signature ``const char* hooks::MyHookName ([const char*
+and have the signature ``std::string hooks::MyHookName ([const char*
Arg0 [ const char* Arg2 [, ...]]])``. They can be used from the
``cmd_line`` tool property::