Formatting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-09-23 22:59:11 +00:00
parent 438f5391b2
commit 734334e349

View File

@ -849,19 +849,19 @@ void CompileUnit::addType(DIE *Entity, DIType Ty, uint16_t Attribute) {
// add may not only be identical to the names in the DIE.
void CompileUnit::addAccelName(StringRef Name, DIE *Die) {
DU->getStringPoolEntry(Name);
std::vector<DIE*> &DIEs = AccelNames[Name];
std::vector<DIE *> &DIEs = AccelNames[Name];
DIEs.push_back(Die);
}
void CompileUnit::addAccelObjC(StringRef Name, DIE *Die) {
DU->getStringPoolEntry(Name);
std::vector<DIE*> &DIEs = AccelObjC[Name];
std::vector<DIE *> &DIEs = AccelObjC[Name];
DIEs.push_back(Die);
}
void CompileUnit::addAccelNamespace(StringRef Name, DIE *Die) {
DU->getStringPoolEntry(Name);
std::vector<DIE*> &DIEs = AccelNamespace[Name];
std::vector<DIE *> &DIEs = AccelNamespace[Name];
DIEs.push_back(Die);
}
@ -880,9 +880,9 @@ void CompileUnit::addGlobalName(StringRef Name, DIE *Die) {
///
void CompileUnit::addGlobalType(DIType Ty) {
DIDescriptor Context = DD->resolve(Ty.getContext());
if (Ty.isCompositeType() && !Ty.getName().empty() && !Ty.isForwardDecl()
&& (!Context || Context.isCompileUnit() || Context.isFile()
|| Context.isNameSpace()))
if (Ty.isCompositeType() && !Ty.getName().empty() && !Ty.isForwardDecl() &&
(!Context || Context.isCompileUnit() || Context.isFile() ||
Context.isNameSpace()))
if (DIEEntry *Entry = getDIEEntry(Ty))
GlobalTypes[Ty.getName()] = Entry->getEntry();
}