mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +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:
@@ -613,15 +613,14 @@ DIE *CompileUnit::getOrCreateTypeDIE(const MDNode *TyNode) {
|
|||||||
bool IsImplementation = 0;
|
bool IsImplementation = 0;
|
||||||
if (Ty.isCompositeType()) {
|
if (Ty.isCompositeType()) {
|
||||||
DICompositeType CT(Ty);
|
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) ||
|
IsImplementation = (CT.getRunTimeLang() == 0) ||
|
||||||
CT.isObjcClassComplete();;
|
CT.isObjcClassComplete();;
|
||||||
}
|
}
|
||||||
|
unsigned Flags = IsImplementation ?
|
||||||
addAccelType(Ty.getName(),
|
DwarfAccelTable::eTypeFlagClassIsImplementation : 0;
|
||||||
std::make_pair(TyDIE,
|
addAccelType(Ty.getName(), std::make_pair(TyDIE, Flags));
|
||||||
(IsImplementation ?
|
|
||||||
DwarfAccelTable::eTypeFlagClassIsImplementation :
|
|
||||||
0)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addToContextOwner(TyDIE, Ty.getContext());
|
addToContextOwner(TyDIE, Ty.getContext());
|
||||||
|
Reference in New Issue
Block a user