From: Joao Matos Date: Tue, 4 Sep 2012 17:33:09 +0000 (+0000) Subject: Revert r163099 per chandlerc's request. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c5fa4292a2ae1fd69c8b984543519c4f119c540;p=clang Revert r163099 per chandlerc's request. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163147 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index a184714f82..cf21d23668 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -1975,9 +1975,7 @@ enum CXCursorKind { */ CXCursor_DeclStmt = 231, - CXCursor_SEHLeaveStmt = 232, - - CXCursor_LastStmt = CXCursor_SEHLeaveStmt, + CXCursor_LastStmt = CXCursor_DeclStmt, /** * \brief Cursor that represents the translation unit itself. diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index b2ca498b7c..ae488abf39 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -3559,8 +3559,6 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) { return createCXString("CXXForRangeStmt"); case CXCursor_SEHTryStmt: return createCXString("SEHTryStmt"); - case CXCursor_SEHLeaveStmt: - return createCXString("SEHLeaveStmt"); case CXCursor_SEHExceptStmt: return createCXString("SEHExceptStmt"); case CXCursor_SEHFinallyStmt: diff --git a/tools/libclang/CXCursor.cpp b/tools/libclang/CXCursor.cpp index 88a4e0db89..e219f948ea 100644 --- a/tools/libclang/CXCursor.cpp +++ b/tools/libclang/CXCursor.cpp @@ -197,10 +197,6 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, CXTranslationUnit TU, K = CXCursor_SEHTryStmt; break; - case Stmt::SEHLeaveStmtClass: - K = CXCursor_SEHLeaveStmt; - break; - case Stmt::SEHExceptStmtClass: K = CXCursor_SEHExceptStmt; break;