<< "*)&FloatConstant" << I->second << ")";
} else {
if (FPCSafeToPrint (FPC)) {
- Out << ftostr (FPC->getValue ());
+ Out << ftostr (FPC->getValue ());
} else {
- Out << FPC->getValue(); // Who knows? Give it our best shot...
+ Out << FPC->getValue(); // Who knows? Give it our best shot...
}
}
break;
}
// Print Malloc prototype if needed
- if (needsMalloc){
+ if (needsMalloc) {
Out << "\n/* Malloc to make sun happy */\n";
Out << "extern void * malloc();\n\n";
}
}
}
-
// Output the global variable definitions and contents...
if (!M->gempty()) {
Out << "\n\n/* Global Variable Definitions and Initialization */\n";
// this one depends on.
void CWriter::printContainedStructs(const Type *Ty,
std::set<const StructType*> &StructPrinted){
- if (const StructType *STy = dyn_cast<StructType>(Ty)){
+ if (const StructType *STy = dyn_cast<StructType>(Ty)) {
//Check to see if we have already printed this struct
if (StructPrinted.count(STy) == 0) {
// Print all contained types first...
FunctionInnards << ")";
// Print out the return type and the entire signature for that matter
printType(Out, F->getReturnType(), FunctionInnards.str());
-
}
void CWriter::printFunction(Function *F) {
<< "*)&FloatConstant" << I->second << ")";
} else {
if (FPCSafeToPrint (FPC)) {
- Out << ftostr (FPC->getValue ());
+ Out << ftostr (FPC->getValue ());
} else {
- Out << FPC->getValue(); // Who knows? Give it our best shot...
+ Out << FPC->getValue(); // Who knows? Give it our best shot...
}
}
break;
}
// Print Malloc prototype if needed
- if (needsMalloc){
+ if (needsMalloc) {
Out << "\n/* Malloc to make sun happy */\n";
Out << "extern void * malloc();\n\n";
}
}
}
-
// Output the global variable definitions and contents...
if (!M->gempty()) {
Out << "\n\n/* Global Variable Definitions and Initialization */\n";
// this one depends on.
void CWriter::printContainedStructs(const Type *Ty,
std::set<const StructType*> &StructPrinted){
- if (const StructType *STy = dyn_cast<StructType>(Ty)){
+ if (const StructType *STy = dyn_cast<StructType>(Ty)) {
//Check to see if we have already printed this struct
if (StructPrinted.count(STy) == 0) {
// Print all contained types first...
FunctionInnards << ")";
// Print out the return type and the entire signature for that matter
printType(Out, F->getReturnType(), FunctionInnards.str());
-
}
void CWriter::printFunction(Function *F) {