summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-12 18:07:07 +0000
committerChris Lattner <sabre@nondot.org>2011-08-12 18:07:07 +0000
commit01becebef303d13e9dd44ba85de1d4c4c8708f37 (patch)
tree24959abe43afe77b6e2e8b1286e8229e2f41bb66 /llvm/lib/Target/CBackend/CBackend.cpp
parent335d399a0ebaad60b788124180f850c25326576f (diff)
downloadbcm5719-llvm-01becebef303d13e9dd44ba85de1d4c4c8708f37.tar.gz
bcm5719-llvm-01becebef303d13e9dd44ba85de1d4c4c8708f37.zip
switch to the new struct apis.
llvm-svn: 137481
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 5b9a0a297fb..73c8225a214 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -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);
OpenPOWER on IntegriCloud