mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 05:12:20 +00:00
Add a comment and ensure that anyone else looking at this code doesn't start
to bleed from the eyes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa03db0d2d
commit
e016789b73
@ -613,15 +613,14 @@ DIE *CompileUnit::getOrCreateTypeDIE(const MDNode *TyNode) {
|
||||
bool IsImplementation = 0;
|
||||
if (Ty.isCompositeType()) {
|
||||
DICompositeType CT(Ty);
|
||||
// A runtime language of 0 actually means C/C++ and that any
|
||||
// non-negative value is some version of Objective-C/C++.
|
||||
IsImplementation = (CT.getRunTimeLang() == 0) ||
|
||||
CT.isObjcClassComplete();;
|
||||
}
|
||||
|
||||
addAccelType(Ty.getName(),
|
||||
std::make_pair(TyDIE,
|
||||
(IsImplementation ?
|
||||
DwarfAccelTable::eTypeFlagClassIsImplementation :
|
||||
0)));
|
||||
unsigned Flags = IsImplementation ?
|
||||
DwarfAccelTable::eTypeFlagClassIsImplementation : 0;
|
||||
addAccelType(Ty.getName(), std::make_pair(TyDIE, Flags));
|
||||
}
|
||||
|
||||
addToContextOwner(TyDIE, Ty.getContext());
|
||||
|
Loading…
x
Reference in New Issue
Block a user