diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-18 01:27:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-18 01:27:55 +0000 |
commit | 337e550218128e7d922c09bb354fbc71de90c568 (patch) | |
tree | ad1699cd2931e9dcb944ffe6ee620db7727c8ccc /include/clang/Sema/ScopeInfo.h | |
parent | 380ebecb32993bf0426e25519eb78d7816b74b12 (diff) |
Switch labels over to using normal name lookup, instead of their
own weird little DenseMap. Hey look, we now emit unused label
warnings deterministically, amazing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/ScopeInfo.h')
-rw-r--r-- | include/clang/Sema/ScopeInfo.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/clang/Sema/ScopeInfo.h b/include/clang/Sema/ScopeInfo.h index 6a0d54d150..b0bb95509a 100644 --- a/include/clang/Sema/ScopeInfo.h +++ b/include/clang/Sema/ScopeInfo.h @@ -52,11 +52,6 @@ public: /// \brief Used to determine if errors occurred in this function or block. DiagnosticErrorTrap ErrorTrap; - /// LabelMap - This is a mapping from label identifiers to the LabelDecl for - /// it. Forward referenced labels have a LabelDecl created for them with a - /// null statement. - llvm::DenseMap<IdentifierInfo*, LabelDecl*> LabelMap; - /// SwitchStack - This is the current set of active switch statements in the /// block. llvm::SmallVector<SwitchStmt*, 8> SwitchStack; @@ -92,11 +87,6 @@ public: virtual ~FunctionScopeInfo(); - /// checkLabelUse - This checks to see if any labels are used without being - /// defined, emiting errors and returning true if any are found. This also - /// warns about unused labels. - bool checkLabelUse(Stmt *Body, Sema &S); - /// \brief Clear out the information in this function scope, making it /// suitable for reuse. void Clear(); |