1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef _DEB_H
- #define _DEB_H
- // Local includes
- #include "Ast.h"
- #include "Lexer.h"
- using namespace llvm;
- namespace debugger {
- struct DebugObjects {
- public:
- static std::unique_ptr<DIBuilder> DBuilder;
- };
- namespace {
- class PrototypeAST;
- class ExprAST;
- }
- struct DebugInfo {
- DICompileUnit *TheCU;
- DIType *DblTy;
- std::vector<DIScope *> LexicalBlocks;
- void emitLocation(ExprAST *AST);
- DIType *getDoubleTy();
- } KSDbgInfo;
- static DISubroutineType *CreateFunctionType(unsigned NumArgs, DIFile *Unit);
- }
- #endif
|