diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-24 11:00:35 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-24 11:00:35 -0800 |
commit | 32f7fbfce3948e52246489458fc184183b1d2753 (patch) | |
tree | eba60739153a52357fd3237e40267515e85b55ab /lib/Target/CppBackend | |
parent | ee2f1f7f40632e786c6e67c1fc82185d2fcafac2 (diff) |
name backend passes
Diffstat (limited to 'lib/Target/CppBackend')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CppBackend/SimplifyAllocas.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index a5a648105d..4244c2689e 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -107,7 +107,7 @@ namespace { explicit JSWriter(formatted_raw_ostream &o) : ModulePass(ID), Out(o), UniqueNum(0) {} - virtual const char *getPassName() const { return "C++ backend"; } + virtual const char *getPassName() const { return "JavaScript backend"; } bool runOnModule(Module &M); diff --git a/lib/Target/CppBackend/SimplifyAllocas.cpp b/lib/Target/CppBackend/SimplifyAllocas.cpp index f135122dd5..19480ffe7c 100644 --- a/lib/Target/CppBackend/SimplifyAllocas.cpp +++ b/lib/Target/CppBackend/SimplifyAllocas.cpp @@ -44,6 +44,8 @@ struct SimplifyAllocas : public FunctionPass { // XXX initialize..(*PassRegistry::getPassRegistry()); } virtual bool runOnFunction(Function &Func); + + virtual const char *getPassName() const { return "SimplifyAllocas"; } }; char SimplifyAllocas::ID = 0; |