mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
CppBackend: avoid printing unnecessary whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80917 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05cd03b335
commit
6d5f0f041f
@ -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(";
|
||||
|
Loading…
x
Reference in New Issue
Block a user