-
- Downloads
Add the notion of deferred diagnostics.
Summary: This patch lets you create diagnostics that are emitted if and only if a particular FunctionDecl is codegen'ed. This is necessary for CUDA, where some constructs -- e.g. calls from host+device functions to host functions when compiling for device -- are allowed to appear in semantically-correct programs, but only if they're never codegen'ed. Reviewers: rnk Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D23241 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278735 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/ASTContext.h 11 additions, 0 deletionsinclude/clang/AST/ASTContext.h
- include/clang/AST/Decl.h 8 additions, 0 deletionsinclude/clang/AST/Decl.h
- lib/AST/Decl.cpp 14 additions, 0 deletionslib/AST/Decl.cpp
- lib/CodeGen/CodeGenModule.cpp 37 additions, 0 deletionslib/CodeGen/CodeGenModule.cpp
- lib/CodeGen/CodeGenModule.h 4 additions, 0 deletionslib/CodeGen/CodeGenModule.h
Loading
Please register or sign in to comment