diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-09-03 14:58:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-09-03 14:58:24 +0000 |
commit | 13d048fdffcde11071206542fcb52f51fec2d7d1 (patch) | |
tree | cb78063a36618c3fe9431ae4e4e23e535ef9c34a /llvm/lib/Target/CppBackend | |
parent | b3286fe685c96b2e86b89004b6855b5e71624a2e (diff) | |
download | bcm5719-llvm-13d048fdffcde11071206542fcb52f51fec2d7d1.tar.gz bcm5719-llvm-13d048fdffcde11071206542fcb52f51fec2d7d1.zip |
CppBackend: avoid printing unnecessary whitespace.
llvm-svn: 80917
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index db8ccab6445..14ad451074a 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -755,7 +755,7 @@ namespace { Out << "ConstantInt* " << constName << " = ConstantInt::get(getGlobalContext(), APInt(" << cast<IntegerType>(CI->getType())->getBitWidth() - << ", StringRef(\"" << constValue << "\"), 10));"; + << ", StringRef(\"" << constValue << "\"), 10));"; } else if (isa<ConstantAggregateZero>(CV)) { Out << "ConstantAggregateZero* " << constName << " = ConstantAggregateZero::get(" << typeName << ");"; @@ -842,7 +842,7 @@ namespace { << getCppName(CE->getOperand(0)) << ", " << "&" << constName << "_indices[0], " << constName << "_indices.size()" - << " );"; + << ");"; } else if (CE->isCast()) { printConstant(CE->getOperand(0)); Out << "Constant* " << constName << " = ConstantExpr::getCast("; |