summaryrefslogtreecommitdiffstats
path: root/clang/AST/Decl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-11 01:28:17 +0000
committerChris Lattner <sabre@nondot.org>2007-06-11 01:28:17 +0000
commit4ef40013d75ca83930bbbc71a329eeacc80dcbac (patch)
tree0f8ca09c1a8f0c6bc65ea416cd2912d2b65f96f7 /clang/AST/Decl.cpp
parenta8fd973aa031974ff6c80ad7f660b7e61df68138 (diff)
downloadbcm5719-llvm-4ef40013d75ca83930bbbc71a329eeacc80dcbac.tar.gz
bcm5719-llvm-4ef40013d75ca83930bbbc71a329eeacc80dcbac.zip
Implement capturing of enum values and chaining of enums together.
llvm-svn: 39644
Diffstat (limited to 'clang/AST/Decl.cpp')
-rw-r--r--clang/AST/Decl.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/AST/Decl.cpp b/clang/AST/Decl.cpp
index 169e4a48efe..ca37f7cfc9f 100644
--- a/clang/AST/Decl.cpp
+++ b/clang/AST/Decl.cpp
@@ -136,21 +136,6 @@ void FunctionDecl::setParams(VarDecl **NewParamInfo, unsigned NumParams) {
}
-/// defineElements - When created, EnumDecl correspond to a forward declared
-/// enum. This method is used to mark the decl as being defined, with the
-/// specified contents.
-void EnumDecl::defineElements(EnumConstantDecl **Elts, unsigned NumElts) {
- assert(!isDefinition() && "Cannot redefine enums!");
- setDefinition(true);
- NumElements = NumElts;
- if (NumElts) {
- Elements = new EnumConstantDecl*[NumElts];
- memcpy(Elements, Elts, NumElts*sizeof(Decl*));
- }
-}
-
-
-
/// defineBody - When created, RecordDecl's correspond to a forward declared
/// record. This method is used to mark the decl as being defined, with the
/// specified contents.
OpenPOWER on IntegriCloud