[llvm-commits] [llvm] r86435 - /llvm/trunk/lib/Target/TargetData.cpp
Chris Lattner
sabre at nondot.org
Sat Nov 7 18:32:01 PST 2009
Author: lattner
Date: Sat Nov 7 20:32:01 2009
New Revision: 86435
URL: http://llvm.org/viewvc/llvm-project?rev=86435&view=rev
Log:
Make TargetData::getStringRepresentation spit out native integer types,
this gives llvm-gcc generated modules the right data.
Modified:
llvm/trunk/lib/Target/TargetData.cpp
Modified: llvm/trunk/lib/Target/TargetData.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetData.cpp?rev=86435&r1=86434&r2=86435&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetData.cpp (original)
+++ llvm/trunk/lib/Target/TargetData.cpp Sat Nov 7 20:32:01 2009
@@ -392,6 +392,13 @@
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();
}
More information about the llvm-commits
mailing list