From: Chris Lattner Date: Sun, 8 Nov 2009 02:32:01 +0000 (+0000) Subject: Make TargetData::getStringRepresentation spit out native integer types, X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7e89738f98c1dbe455a1b6c5c55c04cc891fe503;p=oota-llvm.git Make TargetData::getStringRepresentation spit out native integer types, this gives llvm-gcc generated modules the right data. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86435 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index b6b84c52956..c2fbd3f0e61 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -392,6 +392,13 @@ std::string TargetData::getStringRepresentation() const { OS << '-' << (char)AI.AlignType << AI.TypeBitWidth << ':' << AI.ABIAlign*8 << ':' << AI.PrefAlign*8; } + + if (!LegalIntWidths.empty()) { + OS << "-n" << (unsigned)LegalIntWidths[0]; + + for (unsigned i = 1, e = LegalIntWidths.size(); i != e; ++i) + OS << ':' << (unsigned)LegalIntWidths[i]; + } return OS.str(); }