aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-22 14:04:28 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-22 14:04:28 -0800
commit4da54cecab3a48a463c4a7ad47522d02b542e4ca (patch)
tree806221b1713f722607acd0c610680e40625dd11b /lib/Target/CppBackend/CPPBackend.cpp
parent7d6042bd5482cf9c546e9d2ec6aae781de3404a8 (diff)
update relooper and fix indentation and empty lines
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp3
1 files changed, 2 insertions, 1 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;