[llvm-commits] [llvm] r80917 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Sep 3 07:58:24 PDT 2009
Author: d0k
Date: Thu Sep 3 09:58:24 2009
New Revision: 80917
URL: http://llvm.org/viewvc/llvm-project?rev=80917&view=rev
Log:
CppBackend: avoid printing unnecessary whitespace.
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=80917&r1=80916&r2=80917&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Thu Sep 3 09:58:24 2009
@@ -755,7 +755,7 @@
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 @@
<< getCppName(CE->getOperand(0)) << ", "
<< "&" << constName << "_indices[0], "
<< constName << "_indices.size()"
- << " );";
+ << ");";
} else if (CE->isCast()) {
printConstant(CE->getOperand(0));
Out << "Constant* " << constName << " = ConstantExpr::getCast(";
More information about the llvm-commits
mailing list