summaryrefslogtreecommitdiff
path: root/lib/Target/CBackend
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
commitc4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf (patch)
tree50f7407039d9e3530ced09a2025b166aa4d27eab /lib/Target/CBackend
parent3ebb64946bc8e7c8feba1b2044e7a47f80b3a83f (diff)
downloadllvm-c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf.tar.gz
llvm-c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf.tar.bz2
llvm-c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf.tar.xz
switch to the new struct apis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 5b9a0a297f..73c8225a21 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/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);