Home
last modified time | relevance | path

Searched refs:LabelDecl (Results 1 – 25 of 36) sorted by relevance

12

/external/clang/lib/Sema/
DJumpDiagnostics.cpp70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
83 LabelDecl *Target, unsigned TargetScope);
541 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
622 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
623 for (SmallVectorImpl<LabelDecl*>::iterator in VerifyIndirectJumps()
626 LabelDecl *TheLabel = *I; in VerifyIndirectJumps()
630 LabelDecl *&Target = TargetScopes[LabelScope]; in VerifyIndirectJumps()
643 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator in VerifyIndirectJumps()
646 LabelDecl *TargetLabel = TI->second; in VerifyIndirectJumps()
723 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectJumpStmt()
[all …]
DSemaStmtAsm.cpp737 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
740 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
DSemaLookup.cpp3635 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
3642 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3645 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
3656 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3661 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
DSemaTemplateInstantiateDecl.cpp329 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
330 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
4484 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
4490 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
/external/clang/include/clang/AST/
DStmt.h41 class LabelDecl; variable
779 LabelDecl *TheDecl;
783 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
794 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
795 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
1203 LabelDecl *Label;
1207 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
1213 LabelDecl *getLabel() const { return Label; } in getLabel()
1214 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
1261 LabelDecl *getConstantTarget();
[all …]
DDecl.h354 class LabelDecl : public NamedDecl {
364 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
372 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
374 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
377 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
DExpr.h3407 LabelDecl *Label;
3409 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
3427 LabelDecl *getLabel() const { return Label; } in getLabel()
3428 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSVals.h472 explicit GotoLabel(LabelDecl *Label) : Loc(GotoLabelKind, Label) {} in GotoLabel()
474 const LabelDecl *getLabel() const { in getLabel()
475 return static_cast<const LabelDecl*>(Data); in getLabel()
DCoreEngine.h466 const LabelDecl *getLabel() const { in getLabel()
/external/clang/lib/Frontend/
DASTConsumers.cpp414 LabelDecl *LD = cast<LabelDecl>(I); in PrintDeclContext()
/external/clang/lib/AST/
DDecl.cpp3804 void LabelDecl::anchor() { } in anchor()
3806 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3808 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
3811 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3815 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
3818 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3819 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
3823 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
DDeclPrinter.cpp68 void VisitLabelDecl(LabelDecl *D);
704 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
DASTDumper.cpp417 void VisitLabelDecl(const LabelDecl *D);
1039 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { in VisitLabelDecl()
DStmt.cpp880 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
DASTImporter.cpp4657 LabelDecl *ToLabelDecl = in VisitLabelStmt()
4658 cast_or_null<LabelDecl>(Importer.Import(S->getDecl())); in VisitLabelStmt()
4816 LabelDecl *ToLabel = nullptr; in VisitGotoStmt()
4817 if (LabelDecl *FromLabel = S->getLabel()) { in VisitGotoStmt()
4818 ToLabel = dyn_cast_or_null<LabelDecl>(Importer.Import(FromLabel)); in VisitGotoStmt()
/external/clang/lib/CodeGen/
DCodeGenFunction.h58 class LabelDecl; variable
516 SmallVector<const LabelDecl*, 4> Labels;
531 void addLabel(const LabelDecl *label) { in addLabel()
930 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
1497 JumpDest getJumpDestForLabel(const LabelDecl *S);
1744 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
2135 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
DCGStmt.cpp422 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
433 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
467 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
520 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
/external/clang/unittests/AST/
DSourceLocationTest.cpp68 TEST(LabelDecl, Range) { in TEST() argument
/external/clang/include/clang/Sema/
DScopeInfo.h38 class LabelDecl; variable
/external/clang/lib/Parse/
DParseStmtAsm.cpp100 LabelDecl *Label = in LookupInlineAsmLabel()
DParseStmt.cpp603 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
1780 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp164 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx); in VisitLabelStmt()
251 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitGotoStmt()
860 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitAddrLabelExpr()
DASTWriterDecl.cpp54 void VisitLabelDecl(LabelDecl *LD);
1042 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/external/clang/lib/Analysis/
DCFG.cpp385 typedef llvm::DenseMap<LabelDecl*, JumpTarget> LabelMapTy;
394 typedef llvm::SmallPtrSet<LabelDecl*, 5> LabelSetTy;
2038 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/external/clang/tools/libclang/
DCIndex.cpp1794 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent) in LabelRefVisit()
1801 const LabelDecl *get() const { in get()
1802 return static_cast<const LabelDecl *>(data[0]); in get()
2697 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get(); in RunVisitorWorkList()
5136 if (LabelDecl *label = Goto->getLabel()) in clang_getCursorReferenced()

12