Displaying 2 results from an estimated 2 matches for "getastemplatedecl".
2018 May 02
3
Generating function definition for function that's only called during unwinding
...which declarations are
called within a translation unit and decides to codegen their definitions.
DeclBase.h has a markUsed to keep track of ODR use, and I think that the
decl can be found from the symbol table via ASTContext.h (for example
looking up a template via GetQualifiedTemplateName -> getAsTemplateDecl ->
setIsUsed ). This is just a result of fumbling around in the dark, I could
be totally wrong.
I'd like to know what part of the system is responsible for tracking usage,
and whether that's the same mechanism that decides whether to CodeGen basic
blocks with function definitions.
Part...
2018 May 02
0
Generating function definition for function that's only called during unwinding
...> called within a translation unit and decides to codegen their definitions.
>
> DeclBase.h has a markUsed to keep track of ODR use, and I think that the
> decl can be found from the symbol table via ASTContext.h (for example
> looking up a template via GetQualifiedTemplateName -> getAsTemplateDecl ->
> setIsUsed ). This is just a result of fumbling around in the dark, I could
> be totally wrong.
>
> I'd like to know what part of the system is responsible for tracking
> usage, and whether that's the same mechanism that decides whether to
> CodeGen basic blocks wit...