diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-22 14:04:28 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-22 14:04:28 -0800 |
commit | 4da54cecab3a48a463c4a7ad47522d02b542e4ca (patch) | |
tree | 806221b1713f722607acd0c610680e40625dd11b | |
parent | 7d6042bd5482cf9c546e9d2ec6aae781de3404a8 (diff) |
update relooper and fix indentation and empty lines
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 3 | ||||
-rw-r--r-- | lib/Target/CppBackend/Relooper.cpp | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 481c9876b6..0267a88171 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1745,7 +1745,8 @@ void CppWriter::printFunctionBody(const Function *F) { std::string contents = ""; for (BasicBlock::const_iterator I = BI->begin(), E = BI->end(); I != E; ++I) { - contents += " " + generateInstruction(I) + "\n"; + std::string curr = generateInstruction(I); + if (curr.size() > 0) contents += curr + "\n"; } Block *Curr = new Block(contents.c_str(), NULL); // TODO: use branch vars so we get switches const BasicBlock *BB = &*BI; diff --git a/lib/Target/CppBackend/Relooper.cpp b/lib/Target/CppBackend/Relooper.cpp index 07b3631141..d2a48f6356 100644 --- a/lib/Target/CppBackend/Relooper.cpp +++ b/lib/Target/CppBackend/Relooper.cpp @@ -71,11 +71,7 @@ static int AsmJS = 0; // Indenter -#if EMSCRIPTEN int Indenter::CurrIndent = 1; -#else -int Indenter::CurrIndent = 0; -#endif // Branch |