mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
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
This commit is contained in:
parent
70a1ce2557
commit
7e89738f98
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user