aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-08 02:32:01 +0000
committerChris Lattner <sabre@nondot.org>2009-11-08 02:32:01 +0000
commit7e89738f98c1dbe455a1b6c5c55c04cc891fe503 (patch)
tree1acb471e7799a88b1fcdccf06fde7f82dff66210 /lib/Target/TargetData.cpp
parent70a1ce2557bc16106fa89fbdfa90da4deba7f7ac (diff)
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
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r--lib/Target/TargetData.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp
index b6b84c5295..c2fbd3f0e6 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();
}