forked from OSchip/llvm-project
parent
8344ba0dac
commit
c9b0984666
|
@ -990,13 +990,12 @@ void CWriter::printFloatingPointConstants(Function &F) {
|
||||||
/// type name is found, emit it's declaration...
|
/// type name is found, emit it's declaration...
|
||||||
///
|
///
|
||||||
void CWriter::printModuleTypes(const SymbolTable &ST) {
|
void CWriter::printModuleTypes(const SymbolTable &ST) {
|
||||||
// If there are no type names, exit early.
|
// We are only interested in the type plane of the symbol table.
|
||||||
if ( ! ST.hasTypes() )
|
|
||||||
return;
|
|
||||||
|
|
||||||
// We are only interested in the type plane of the symbol table...
|
|
||||||
SymbolTable::type_const_iterator I = ST.type_begin();
|
SymbolTable::type_const_iterator I = ST.type_begin();
|
||||||
SymbolTable::type_const_iterator End = ST.type_end();
|
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!
|
// Print out forward declarations for structure types before anything else!
|
||||||
Out << "/* Structure forward decls */\n";
|
Out << "/* Structure forward decls */\n";
|
||||||
|
|
Loading…
Reference in New Issue