mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
switch to the new struct apis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -363,7 +363,7 @@ static std::string CBEMangle(const std::string &S) {
|
||||
}
|
||||
|
||||
std::string CWriter::getStructName(StructType *ST) {
|
||||
if (!ST->isAnonymous() && !ST->getName().empty())
|
||||
if (!ST->isLiteral() && !ST->getName().empty())
|
||||
return CBEMangle("l_"+ST->getName().str());
|
||||
|
||||
return "l_unnamed_" + utostr(UnnamedStructIDs[ST]);
|
||||
@@ -2052,7 +2052,7 @@ void CWriter::printModuleTypes() {
|
||||
for (unsigned i = 0, e = StructTypes.size(); i != e; ++i) {
|
||||
StructType *ST = StructTypes[i];
|
||||
|
||||
if (ST->isAnonymous() || ST->getName().empty())
|
||||
if (ST->isLiteral() || ST->getName().empty())
|
||||
UnnamedStructIDs[ST] = NextTypeID++;
|
||||
|
||||
std::string Name = getStructName(ST);
|
||||
|
||||
Reference in New Issue
Block a user