From: Chris Lattner Date: Fri, 20 Sep 2002 15:20:24 +0000 (+0000) Subject: Fix output of typedefs to avoid syntax errors. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=270d78a8d6fc66050f674fae91b23850ded95615;p=oota-llvm.git Fix output of typedefs to avoid syntax errors. * 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 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 469a3a8f007..7501a9bfde2 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -595,7 +595,7 @@ void CWriter::printSymbolTable(const SymbolTable &ST) { const Type *Ty = cast(I->second); string Name = "l_" + makeNameProper(I->first); Out << "typedef "; - printType(Ty, Name, true); + printType(Ty, Name); Out << ";\n"; } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 469a3a8f007..7501a9bfde2 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -595,7 +595,7 @@ void CWriter::printSymbolTable(const SymbolTable &ST) { const Type *Ty = cast(I->second); string Name = "l_" + makeNameProper(I->first); Out << "typedef "; - printType(Ty, Name, true); + printType(Ty, Name); Out << ";\n"; }