diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-20 15:20:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-20 15:20:24 +0000 |
commit | 270d78a8d6fc66050f674fae91b23850ded95615 (patch) | |
tree | 96ce4c994f13484f5ce30984e20e962dfae24170 /lib/Target/CBackend | |
parent | 58d04d4e35d0744b7823636b4d7ff7c2421cb03a (diff) | |
download | external_llvm-270d78a8d6fc66050f674fae91b23850ded95615.zip external_llvm-270d78a8d6fc66050f674fae91b23850ded95615.tar.gz external_llvm-270d78a8d6fc66050f674fae91b23850ded95615.tar.bz2 |
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
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 469a3a8..7501a9b 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<Type>(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 469a3a8..7501a9b 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<Type>(I->second); string Name = "l_" + makeNameProper(I->first); Out << "typedef "; - printType(Ty, Name, true); + printType(Ty, Name); Out << ";\n"; } |