diff options
-rw-r--r-- | include/clang/AST/DeclGroup.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h index c9d0d655cb..3a57281bc0 100644 --- a/include/clang/AST/DeclGroup.h +++ b/include/clang/AST/DeclGroup.h @@ -93,7 +93,6 @@ public: return const_cast<DeclGroupRef*>(this)->getDeclGroup(); } - iterator begin() { if (isSingleDecl()) return D ? &D : 0; @@ -120,6 +119,13 @@ public: return &G[0] + G.size(); } + void *getAsOpaquePtr() const { return D; } + static DeclGroupRef getFromOpaquePtr(void *Ptr) { + DeclGroupRef X; + X.D = static_cast<Decl*>(Ptr); + return X; + } + /// Emit - Serialize a DeclGroupRef to Bitcode. void Emit(llvm::Serializer& S) const; |