Fix output of typedefs to avoid syntax errors.
authorChris Lattner <sabre@nondot.org>
Fri, 20 Sep 2002 15:20:24 +0000 (15:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Sep 2002 15:20:24 +0000 (15:20 +0000)
  * We now can correctly Cify the Olden-power benchmark

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3860 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 469a3a8f00731562c7209f37334cb03a7b709177..7501a9bfde2aa07a359a79172b5fc042563339a8 100644 (file)
@@ -595,7 +595,7 @@ void CWriter::printSymbolTable(const SymbolTable &ST) {
     const Type *Ty = cast<Type>(I->second);
     string Name = "l_" + makeNameProper(I->first);
     Out << "typedef ";
-    printType(Ty, Name, true);
+    printType(Ty, Name);
     Out << ";\n";
   }
 
index 469a3a8f00731562c7209f37334cb03a7b709177..7501a9bfde2aa07a359a79172b5fc042563339a8 100644 (file)
@@ -595,7 +595,7 @@ void CWriter::printSymbolTable(const SymbolTable &ST) {
     const Type *Ty = cast<Type>(I->second);
     string Name = "l_" + makeNameProper(I->first);
     Out << "typedef ";
-    printType(Ty, Name, true);
+    printType(Ty, Name);
     Out << ";\n";
   }