forked from OSchip/llvm-project
parent
eb9165c08f
commit
16d9f1788e
|
@ -36,7 +36,7 @@ class GlobalDecl {
|
|||
|
||||
Value.setPointer(D);
|
||||
}
|
||||
|
||||
|
||||
public:
|
||||
GlobalDecl() {}
|
||||
|
||||
|
@ -50,6 +50,14 @@ public:
|
|||
GlobalDecl(const CXXDestructorDecl *D, CXXDtorType Type)
|
||||
: Value(D, Type) {}
|
||||
|
||||
GlobalDecl getCanonicalDecl() const {
|
||||
GlobalDecl CanonGD;
|
||||
CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl());
|
||||
CanonGD.Value.setInt(Value.getInt());
|
||||
|
||||
return CanonGD;
|
||||
}
|
||||
|
||||
const Decl *getDecl() const { return Value.getPointer(); }
|
||||
|
||||
CXXCtorType getCtorType() const {
|
||||
|
|
Loading…
Reference in New Issue