mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Minor clean ups. No functionality change.
llvm-svn: 71256
This commit is contained in:
parent
6d21c4110b
commit
d7428b0d9c
@ -224,7 +224,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DIE(unsigned Tag)
|
explicit DIE(unsigned Tag)
|
||||||
: Abbrev(Tag, DW_CHILDREN_no), Offset(0), Size(0), Children(), Values() {}
|
: Abbrev(Tag, DW_CHILDREN_no), Offset(0), Size(0) {}
|
||||||
virtual ~DIE();
|
virtual ~DIE();
|
||||||
|
|
||||||
// Accessors.
|
// Accessors.
|
||||||
@ -594,6 +594,7 @@ class DIEntry : public DIEValue {
|
|||||||
public:
|
public:
|
||||||
explicit DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
|
explicit DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
|
||||||
|
|
||||||
|
DIE *getEntry() const { return Entry; }
|
||||||
void setEntry(DIE *E) { Entry = E; }
|
void setEntry(DIE *E) { Entry = E; }
|
||||||
|
|
||||||
// Implement isa/cast/dyncast.
|
// Implement isa/cast/dyncast.
|
||||||
@ -1116,7 +1117,7 @@ class DbgScope {
|
|||||||
SmallVector<DbgVariable *, 8> Variables;// Variables declared in scope.
|
SmallVector<DbgVariable *, 8> Variables;// Variables declared in scope.
|
||||||
public:
|
public:
|
||||||
DbgScope(DbgScope *P, DIDescriptor D)
|
DbgScope(DbgScope *P, DIDescriptor D)
|
||||||
: Parent(P), Desc(D), StartLabelID(0), EndLabelID(0), Scopes(), Variables()
|
: Parent(P), Desc(D), StartLabelID(0), EndLabelID(0)
|
||||||
{}
|
{}
|
||||||
virtual ~DbgScope() {
|
virtual ~DbgScope() {
|
||||||
for (unsigned i = 0, N = Scopes.size(); i < N; ++i) delete Scopes[i];
|
for (unsigned i = 0, N = Scopes.size(); i < N; ++i) delete Scopes[i];
|
||||||
@ -2211,7 +2212,6 @@ private:
|
|||||||
// with their unmangled counterparts. See PR2885. Don't do this assert.
|
// with their unmangled counterparts. See PR2885. Don't do this assert.
|
||||||
assert(0 && "Couldn't find DIE for machine function!");
|
assert(0 && "Couldn't find DIE for machine function!");
|
||||||
#endif
|
#endif
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EmitInitial - Emit initial Dwarf declarations. This is necessary for cc
|
/// EmitInitial - Emit initial Dwarf declarations. This is necessary for cc
|
||||||
@ -2302,9 +2302,8 @@ private:
|
|||||||
if (Abbrev->getChildrenFlag() == DW_CHILDREN_yes) {
|
if (Abbrev->getChildrenFlag() == DW_CHILDREN_yes) {
|
||||||
const std::vector<DIE *> &Children = Die->getChildren();
|
const std::vector<DIE *> &Children = Die->getChildren();
|
||||||
|
|
||||||
for (unsigned j = 0, M = Children.size(); j < M; ++j) {
|
for (unsigned j = 0, M = Children.size(); j < M; ++j)
|
||||||
EmitDIE(Children[j]);
|
EmitDIE(Children[j]);
|
||||||
}
|
|
||||||
|
|
||||||
Asm->EmitInt8(0); Asm->EOL("End Of Children Mark");
|
Asm->EmitInt8(0); Asm->EOL("End Of Children Mark");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user