Emit information about target

llvm-svn: 5844
This commit is contained in:
Chris Lattner 2003-04-22 19:07:19 +00:00
parent 2012613040
commit c840aa64e2
1 changed files with 3 additions and 0 deletions

View File

@ -519,6 +519,9 @@ void AssemblyWriter::writeOperand(const Value *Operand, bool PrintType,
void AssemblyWriter::printModule(const Module *M) { void AssemblyWriter::printModule(const Module *M) {
Out << "target endian = " << (M->isLittleEndian() ? "little" : "big") << "\n";
Out << "target pointersize = " << (M->has32BitPointers() ? 32 : 64) << "\n";
// Loop over the symbol table, emitting all named constants... // Loop over the symbol table, emitting all named constants...
printSymbolTable(M->getSymbolTable()); printSymbolTable(M->getSymbolTable());