mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea8186ad62
commit
b15fde2b78
@ -990,13 +990,12 @@ void CWriter::printFloatingPointConstants(Function &F) {
|
||||
/// type name is found, emit it's declaration...
|
||||
///
|
||||
void CWriter::printModuleTypes(const SymbolTable &ST) {
|
||||
// If there are no type names, exit early.
|
||||
if ( ! ST.hasTypes() )
|
||||
return;
|
||||
|
||||
// We are only interested in the type plane of the symbol table...
|
||||
// We are only interested in the type plane of the symbol table.
|
||||
SymbolTable::type_const_iterator I = ST.type_begin();
|
||||
SymbolTable::type_const_iterator End = ST.type_end();
|
||||
|
||||
// If there are no type names, exit early.
|
||||
if (I == End) return;
|
||||
|
||||
// Print out forward declarations for structure types before anything else!
|
||||
Out << "/* Structure forward decls */\n";
|
||||
|
@ -990,13 +990,12 @@ void CWriter::printFloatingPointConstants(Function &F) {
|
||||
/// type name is found, emit it's declaration...
|
||||
///
|
||||
void CWriter::printModuleTypes(const SymbolTable &ST) {
|
||||
// If there are no type names, exit early.
|
||||
if ( ! ST.hasTypes() )
|
||||
return;
|
||||
|
||||
// We are only interested in the type plane of the symbol table...
|
||||
// We are only interested in the type plane of the symbol table.
|
||||
SymbolTable::type_const_iterator I = ST.type_begin();
|
||||
SymbolTable::type_const_iterator End = ST.type_end();
|
||||
|
||||
// If there are no type names, exit early.
|
||||
if (I == End) return;
|
||||
|
||||
// Print out forward declarations for structure types before anything else!
|
||||
Out << "/* Structure forward decls */\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user