aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <sunfish@google.com>2014-02-24 08:49:38 -0800
committerDan Gohman <sunfish@google.com>2014-02-25 11:58:56 -0800
commit868e67812c09905c35ee6e09393d4646c1364505 (patch)
tree462ccd60aeebde8c053166f039661d3a715206b6
parent338da97ed47659b9ef04f60067f84cafc93e3dd3 (diff)
Eliminate a few more temporary std::strings.
-rw-r--r--lib/Target/JSBackend/CallHandlers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h
index dae61b2054..c37bcef9e8 100644
--- a/lib/Target/JSBackend/CallHandlers.h
+++ b/lib/Target/JSBackend/CallHandlers.h
@@ -690,7 +690,7 @@ DEF_REDIRECT_HANDLER(SDL_RWFromMem, SDL_RWFromConstMem);
void setupCallHandlers() {
CallHandlers = new CallHandlerMap;
#define SETUP_CALL_HANDLER(Ident) \
- (*CallHandlers)[std::string("_") + #Ident] = &JSWriter::CH_##Ident;
+ (*CallHandlers)["_" #Ident] = &JSWriter::CH_##Ident;
SETUP_CALL_HANDLER(__default__);
SETUP_CALL_HANDLER(emscripten_preinvoke);