Home
last modified time | relevance | path

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

12

/minix3/external/bsd/llvm/dist/clang/lib/Sema/
H A DJumpDiagnostics.cpp70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
83 LabelDecl *Target, unsigned TargetScope);
506 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
587 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
588 for (SmallVectorImpl<LabelDecl*>::iterator in VerifyIndirectJumps()
591 LabelDecl *TheLabel = *I; in VerifyIndirectJumps()
595 LabelDecl *&Target = TargetScopes[LabelScope]; in VerifyIndirectJumps()
608 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator in VerifyIndirectJumps()
611 LabelDecl *TargetLabel = TI->second; in VerifyIndirectJumps()
688 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectJumpStmt()
[all …]
H A DSemaStmtAsm.cpp614 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
617 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
H A DSemaLookup.cpp3268 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
3275 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3278 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
3289 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3294 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
H A DSemaTemplateInstantiateDecl.cpp292 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
293 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
4414 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
4420 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
/minix3/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A 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()
H A DCoreEngine.h466 const LabelDecl *getLabel() const { in getLabel()
/minix3/external/bsd/llvm/dist/clang/include/clang/AST/
H A DStmt.h40 class LabelDecl; variable
787 LabelDecl *TheDecl;
791 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
799 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
800 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
1212 LabelDecl *Label;
1216 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
1222 LabelDecl *getLabel() const { return Label; } in getLabel()
1223 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
1268 LabelDecl *getConstantTarget();
[all …]
H A DDecl.h311 class LabelDecl : public NamedDecl {
321 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
329 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
331 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
334 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
H A DExpr.h3365 LabelDecl *Label;
3367 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
3385 LabelDecl *getLabel() const { return Label; } in getLabel()
3386 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/minix3/external/bsd/llvm/dist/clang/lib/Frontend/
H A DASTConsumers.cpp415 LabelDecl *LD = cast<LabelDecl>(I); in PrintDeclContext()
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DDecl.cpp3750 void LabelDecl::anchor() { } in anchor()
3752 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3754 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
3757 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3761 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
3764 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3765 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
3769 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
H A DDeclPrinter.cpp59 void VisitLabelDecl(LabelDecl *D);
661 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
H A DASTDumper.cpp413 void VisitLabelDecl(const LabelDecl *D);
1012 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { in VisitLabelDecl()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.h56 class LabelDecl; variable
537 SmallVector<const LabelDecl*, 4> Labels;
552 void addLabel(const LabelDecl *label) { in addLabel()
910 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
1400 JumpDest getJumpDestForLabel(const LabelDecl *S);
1603 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
1954 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
H A DCGStmt.cpp394 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
405 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
440 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
493 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
/minix3/external/bsd/llvm/dist/clang/unittests/AST/
H A DSourceLocationTest.cpp68 TEST(LabelDecl, Range) { in TEST() argument
/minix3/external/bsd/llvm/dist/clang/include/clang/Sema/
H A DScopeInfo.h38 class LabelDecl; variable
H A DSema.h2676 LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
3136 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
3200 LabelDecl *TheDecl);
3250 LabelDecl *GetOrCreateMSAsmLabel(StringRef ExternalLabelName,
3784 LabelDecl *TheDecl);
/minix3/external/bsd/llvm/dist/clang/lib/Parse/
H A DParseStmtAsm.cpp100 LabelDecl *Label = in LookupInlineAsmLabel()
H A DParseStmt.cpp582 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
1737 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/minix3/external/bsd/llvm/dist/clang/lib/Serialization/
H A DASTReaderStmt.cpp164 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx); in VisitLabelStmt()
251 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitGotoStmt()
820 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitAddrLabelExpr()
H A DASTReaderDecl.cpp249 void VisitLabelDecl(LabelDecl *LD);
1179 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
2933 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTWriterDecl.cpp54 void VisitLabelDecl(LabelDecl *LD);
902 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/minix3/external/bsd/llvm/dist/clang/lib/Analysis/
H A DCFG.cpp314 typedef llvm::DenseMap<LabelDecl*, JumpTarget> LabelMapTy;
323 typedef llvm::SmallPtrSet<LabelDecl*, 5> LabelSetTy;
1973 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/minix3/external/bsd/llvm/dist/clang/tools/libclang/
H A DCIndex.cpp1742 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent) in LabelRefVisit()
1749 const LabelDecl *get() const { in get()
1750 return static_cast<const LabelDecl *>(data[0]); in get()
2491 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get(); in RunVisitorWorkList()
4821 if (LabelDecl *label = Goto->getLabel()) in clang_getCursorReferenced()

12