mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
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
This commit is contained in:
@@ -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 ? "" : ", ");
|
||||
|
||||
Reference in New Issue
Block a user