summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-07-09 17:33:50 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-07-09 17:33:50 +0000
commitac25de3bf0d115c9e6dcad8685fb3c4c55f086c8 (patch)
tree85f58011f057df7f1f1b9db530e51124d75ef25b /lib
parent781128c4f9463771032fc5e27977820761ec8260 (diff)
downloadllvm-ac25de3bf0d115c9e6dcad8685fb3c4c55f086c8.tar.gz
llvm-ac25de3bf0d115c9e6dcad8685fb3c4c55f086c8.tar.bz2
llvm-ac25de3bf0d115c9e6dcad8685fb3c4c55f086c8.tar.xz
Some beautification changes (tabs to spaces, removed extra blank lines);
no functionality changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/CBackend/CBackend.cpp10
-rw-r--r--lib/Target/CBackend/Writer.cpp10
2 files changed, 8 insertions, 12 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 71e0c3c9fb..b1549826c2 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -471,9 +471,9 @@ void CWriter::printConstant(Constant *CPV) {
<< "*)&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;
@@ -674,7 +674,7 @@ void CWriter::printModule(Module *M) {
}
// Print Malloc prototype if needed
- if (needsMalloc){
+ if (needsMalloc) {
Out << "\n/* Malloc to make sun happy */\n";
Out << "extern void * malloc();\n\n";
}
@@ -691,7 +691,6 @@ void CWriter::printModule(Module *M) {
}
}
-
// Output the global variable definitions and contents...
if (!M->gempty()) {
Out << "\n\n/* Global Variable Definitions and Initialization */\n";
@@ -779,7 +778,7 @@ void CWriter::printSymbolTable(const SymbolTable &ST) {
// 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...
@@ -860,7 +859,6 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
FunctionInnards << ")";
// Print out the return type and the entire signature for that matter
printType(Out, F->getReturnType(), FunctionInnards.str());
-
}
void CWriter::printFunction(Function *F) {
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index 71e0c3c9fb..b1549826c2 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -471,9 +471,9 @@ void CWriter::printConstant(Constant *CPV) {
<< "*)&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;
@@ -674,7 +674,7 @@ void CWriter::printModule(Module *M) {
}
// Print Malloc prototype if needed
- if (needsMalloc){
+ if (needsMalloc) {
Out << "\n/* Malloc to make sun happy */\n";
Out << "extern void * malloc();\n\n";
}
@@ -691,7 +691,6 @@ void CWriter::printModule(Module *M) {
}
}
-
// Output the global variable definitions and contents...
if (!M->gempty()) {
Out << "\n\n/* Global Variable Definitions and Initialization */\n";
@@ -779,7 +778,7 @@ void CWriter::printSymbolTable(const SymbolTable &ST) {
// 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...
@@ -860,7 +859,6 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
FunctionInnards << ")";
// Print out the return type and the entire signature for that matter
printType(Out, F->getReturnType(), FunctionInnards.str());
-
}
void CWriter::printFunction(Function *F) {