clang
3.7.0
|
Public Member Functions | |
BackendConsumer (BackendAction Action, DiagnosticsEngine &Diags, const HeaderSearchOptions &HeaderSearchOpts, const PreprocessorOptions &PPOpts, const CodeGenOptions &CodeGenOpts, const TargetOptions &TargetOpts, const LangOptions &LangOpts, bool TimePasses, const std::string &InFile, llvm::Module *LinkModule, raw_pwrite_stream *OS, LLVMContext &C, CoverageSourceInfo *CoverageInfo=nullptr) | |
std::unique_ptr< llvm::Module > | takeModule () |
llvm::Module * | takeLinkModule () |
void | HandleCXXStaticMemberVarInstantiation (VarDecl *VD) override |
HandleCXXStaticMemberVarInstantiation - Tell the consumer that this. More... | |
void | Initialize (ASTContext &Ctx) override |
bool | HandleTopLevelDecl (DeclGroupRef D) override |
void | HandleInlineMethodDefinition (CXXMethodDecl *D) override |
This callback is invoked each time an inline method definition is completed. More... | |
void | HandleTranslationUnit (ASTContext &C) override |
void | HandleTagDeclDefinition (TagDecl *D) override |
void | HandleTagDeclRequiredDefinition (const TagDecl *D) override |
This callback is invoked the first time each TagDecl is required to be complete. More... | |
void | CompleteTentativeDefinition (VarDecl *D) override |
void | HandleVTable (CXXRecordDecl *RD) override |
Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required. More... | |
void | HandleLinkerOptionPragma (llvm::StringRef Opts) override |
Handle a pragma that appends to Linker Options. Currently this only exists to support Microsoft's #pragma comment(linker, "/foo"). More... | |
void | HandleDetectMismatch (llvm::StringRef Name, llvm::StringRef Value) override |
Handle a pragma that emits a mismatch identifier and value to the object file for the linker to work with. Currently, this only exists to support Microsoft's #pragma detect_mismatch. More... | |
void | HandleDependentLibrary (llvm::StringRef Opts) override |
Handle a dependent library created by a pragma in the source. Currently this only exists to support Microsoft's #pragma comment(lib, "/foo"). More... | |
void | linkerDiagnosticHandler (const llvm::DiagnosticInfo &DI) |
void | InlineAsmDiagHandler2 (const llvm::SMDiagnostic &, SourceLocation LocCookie) |
void | DiagnosticHandlerImpl (const llvm::DiagnosticInfo &DI) |
This function is invoked when the backend needs to report something to the user. More... | |
bool | InlineAsmDiagHandler (const llvm::DiagnosticInfoInlineAsm &D) |
Specialized handler for InlineAsm diagnostic. More... | |
bool | StackSizeDiagHandler (const llvm::DiagnosticInfoStackSize &D) |
Specialized handler for StackSize diagnostic. More... | |
void | EmitOptimizationMessage (const llvm::DiagnosticInfoOptimizationBase &D, unsigned DiagID) |
Specialized handlers for optimization remarks. Note that these handlers only accept remarks and they always handle them. More... | |
void | OptimizationRemarkHandler (const llvm::DiagnosticInfoOptimizationRemark &D) |
void | OptimizationRemarkHandler (const llvm::DiagnosticInfoOptimizationRemarkMissed &D) |
void | OptimizationRemarkHandler (const llvm::DiagnosticInfoOptimizationRemarkAnalysis &D) |
void | OptimizationFailureHandler (const llvm::DiagnosticInfoOptimizationFailure &D) |
![]() | |
ASTConsumer () | |
virtual | ~ASTConsumer () |
virtual void | HandleInterestingDecl (DeclGroupRef D) |
virtual void | HandleCXXImplicitFunctionInstantiation (FunctionDecl *D) |
Invoked when a function is implicitly instantiated. Note that at this point point it does not have a body, its body is instantiated at the end of the translation unit and passed to HandleTopLevelDecl. More... | |
virtual void | HandleTopLevelDeclInObjCContainer (DeclGroupRef D) |
Handle the specified top-level declaration that occurred inside and ObjC container. The default implementation ignored them. More... | |
virtual void | HandleImplicitImportDecl (ImportDecl *D) |
Handle an ImportDecl that was implicitly created due to an inclusion directive. The default implementation passes it to HandleTopLevelDecl. More... | |
virtual ASTMutationListener * | GetASTMutationListener () |
If the consumer is interested in entities getting modified after their initial creation, it should return a pointer to an ASTMutationListener here. More... | |
virtual ASTDeserializationListener * | GetASTDeserializationListener () |
If the consumer is interested in entities being deserialized from AST files, it should return a pointer to a ASTDeserializationListener here. More... | |
virtual void | PrintStats () |
PrintStats - If desired, print any statistics. More... | |
virtual bool | shouldSkipFunctionBody (Decl *D) |
This callback is called for each function if the Parser was initialized with SkipFunctionBodies set to true . More... | |
Static Public Member Functions | |
static void | InlineAsmDiagHandler (const llvm::SMDiagnostic &SM, void *Context, unsigned LocCookie) |
static void | DiagnosticHandler (const llvm::DiagnosticInfo &DI, void *Context) |
Definition at line 42 of file CodeGenAction.cpp.
|
inline |
Definition at line 59 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
CompleteTentativeDefinition - Callback invoked at the end of a translation unit to notify the consumer that the given tentative definition should be completed.
The variable declaration itself will be a tentative definition. If it had an incomplete array type, its type will have already been changed to an array of size 1. However, the declaration remains a tentative definition and has not been modified by the introduction of an implicit zero initializer.
Reimplemented from clang::ASTConsumer.
Definition at line 202 of file CodeGenAction.cpp.
|
inlinestatic |
Definition at line 231 of file CodeGenAction.cpp.
void BackendConsumer::DiagnosticHandlerImpl | ( | const llvm::DiagnosticInfo & | DI | ) |
This function is invoked when the backend needs to report something to the user.
Definition at line 526 of file CodeGenAction.cpp.
References ComputeDiagID, and ComputeDiagRemarkID.
void BackendConsumer::EmitOptimizationMessage | ( | const llvm::DiagnosticInfoOptimizationBase & | D, |
unsigned | DiagID | ||
) |
Specialized handlers for optimization remarks. Note that these handlers only accept remarks and they always handle them.
Definition at line 430 of file CodeGenAction.cpp.
References Column, Context, clang::FileManager::getFile(), clang::ASTContext::getSourceManager(), clang::SourceLocation::isInvalid(), Line, and SourceMgr.
|
inlineoverridevirtual |
HandleCXXStaticMemberVarInstantiation - Tell the consumer that this.
Reimplemented from clang::ASTConsumer.
Definition at line 80 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
Handle a dependent library created by a pragma in the source. Currently this only exists to support Microsoft's #pragma comment(lib, "/foo").
Reimplemented from clang::ASTConsumer.
Definition at line 219 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
Handle a pragma that emits a mismatch identifier and value to the object file for the linker to work with. Currently, this only exists to support Microsoft's #pragma detect_mismatch.
Reimplemented from clang::ASTConsumer.
Definition at line 214 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
This callback is invoked each time an inline method definition is completed.
Reimplemented from clang::ASTConsumer.
Definition at line 119 of file CodeGenAction.cpp.
References Context, and clang::ASTContext::getSourceManager().
|
inlineoverridevirtual |
Handle a pragma that appends to Linker Options. Currently this only exists to support Microsoft's #pragma comment(linker, "/foo").
Reimplemented from clang::ASTConsumer.
Definition at line 210 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
HandleTagDeclDefinition - This callback is invoked each time a TagDecl (e.g. struct, union, enum, class) is completed. This allows the client to hack on the type, which can occur at any point in the file (because these can be defined in declspecs).
Reimplemented from clang::ASTConsumer.
Definition at line 191 of file CodeGenAction.cpp.
References Context, and clang::ASTContext::getSourceManager().
|
inlineoverridevirtual |
This callback is invoked the first time each TagDecl is required to be complete.
Reimplemented from clang::ASTConsumer.
Definition at line 198 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
HandleTopLevelDecl - Handle the specified top-level declaration. This is called by the parser to process every top-level Decl*.
Reimplemented from clang::ASTConsumer.
Definition at line 103 of file CodeGenAction.cpp.
References clang::DeclGroupRef::begin(), Context, and clang::ASTContext::getSourceManager().
|
inlineoverridevirtual |
HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed.
Reimplemented from clang::ASTConsumer.
Definition at line 132 of file CodeGenAction.cpp.
References Action, clang::EmitBackendOutput(), clang::TargetInfo::getTargetDescription(), and clang::ASTContext::getTargetInfo().
|
inlineoverridevirtual |
Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required.
RD | The class whose vtable was used. |
Reimplemented from clang::ASTConsumer.
Definition at line 206 of file CodeGenAction.cpp.
|
inlineoverridevirtual |
Initialize - This is called to initialize the consumer, providing the ASTContext.
Reimplemented from clang::ASTConsumer.
Definition at line 84 of file CodeGenAction.cpp.
References Context.
|
inlinestatic |
Definition at line 223 of file CodeGenAction.cpp.
References clang::SourceLocation::getFromRawEncoding().
bool BackendConsumer::InlineAsmDiagHandler | ( | const llvm::DiagnosticInfoInlineAsm & | D | ) |
Specialized handler for InlineAsm diagnostic.
Definition at line 389 of file CodeGenAction.cpp.
References ComputeDiagID, clang::SourceLocation::getFromRawEncoding(), and clang::SourceLocation::isValid().
void BackendConsumer::InlineAsmDiagHandler2 | ( | const llvm::SMDiagnostic & | D, |
SourceLocation | LocCookie | ||
) |
InlineAsmDiagHandler2 - This function is invoked when the backend hits an error parsing inline asm. The SMDiagnostic indicates the error relative to the temporary memory buffer that the inline asm parser has set up.
Definition at line 299 of file CodeGenAction.cpp.
References Column, Context, ConvertBackendLocation(), clang::SourceLocation::getLocWithOffset(), clang::ASTContext::getSourceManager(), and clang::SourceLocation::isValid().
void BackendConsumer::linkerDiagnosticHandler | ( | const llvm::DiagnosticInfo & | DI | ) |
Definition at line 509 of file CodeGenAction.cpp.
void BackendConsumer::OptimizationFailureHandler | ( | const llvm::DiagnosticInfoOptimizationFailure & | D | ) |
Definition at line 504 of file CodeGenAction.cpp.
void BackendConsumer::OptimizationRemarkHandler | ( | const llvm::DiagnosticInfoOptimizationRemark & | D | ) |
Definition at line 473 of file CodeGenAction.cpp.
void BackendConsumer::OptimizationRemarkHandler | ( | const llvm::DiagnosticInfoOptimizationRemarkMissed & | D | ) |
Definition at line 482 of file CodeGenAction.cpp.
void BackendConsumer::OptimizationRemarkHandler | ( | const llvm::DiagnosticInfoOptimizationRemarkAnalysis & | D | ) |
Definition at line 493 of file CodeGenAction.cpp.
bool BackendConsumer::StackSizeDiagHandler | ( | const llvm::DiagnosticInfoStackSize & | D | ) |
Specialized handler for StackSize diagnostic.
Definition at line 414 of file CodeGenAction.cpp.
References clang::Decl::castToDeclContext().
|
inline |
Definition at line 78 of file CodeGenAction.cpp.
Referenced by clang::CodeGenAction::EndSourceFileAction().
|
inline |
Definition at line 77 of file CodeGenAction.cpp.
Referenced by clang::CodeGenAction::EndSourceFileAction().