Fix use of temporary strings.

llvm-svn: 189310
This commit is contained in:
Rui Ueyama 2013-08-27 04:27:18 +00:00
parent 1b7e4866f4
commit 8a5cbadff9
1 changed files with 4 additions and 4 deletions

View File

@ -350,12 +350,12 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
case OPT_entry: case OPT_entry:
// handle /entry // handle /entry
ctx.setEntrySymbolName(inputArg->getValue()); ctx.setEntrySymbolName(ctx.allocateString(inputArg->getValue()));
break; break;
case OPT_libpath: case OPT_libpath:
// handle /libpath // handle /libpath
ctx.appendInputSearchPath(inputArg->getValue()); ctx.appendInputSearchPath(ctx.allocateString(inputArg->getValue()));
break; break;
case OPT_force: case OPT_force:
@ -408,12 +408,12 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
case OPT_incl: case OPT_incl:
// handle /incl // handle /incl
ctx.addInitialUndefinedSymbol(inputArg->getValue()); ctx.addInitialUndefinedSymbol(ctx.allocateString(inputArg->getValue()));
break; break;
case OPT_out: case OPT_out:
// handle /out // handle /out
ctx.setOutputPath(inputArg->getValue()); ctx.setOutputPath(ctx.allocateString(inputArg->getValue()));
break; break;
case OPT_INPUT: { case OPT_INPUT: {