-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDebugInfo.hpp
More file actions
47 lines (40 loc) · 1.06 KB
/
Copy pathDebugInfo.hpp
File metadata and controls
47 lines (40 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Copyright (C) 2014 - 2020 Map2Check tool
* This file is part of the Map2Check tool, and is made available under
* the terms of the GNU General Public License version 2.
*
* LLVM -> NCSA
*
* SPDX-License-Identifier: (GPL-2.0 AND NCSA)
**/
#ifndef MODULES_BACKEND_PASS_DEBUGINFO_HPP_
#define MODULES_BACKEND_PASS_DEBUGINFO_HPP_
#include <llvm/IR/Constants.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Metadata.h>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
// using namespace llvm;
using llvm::ConstantInt;
using llvm::DebugLoc;
using llvm::Instruction;
using llvm::LLVMContext;
using llvm::StringRef;
using llvm::Type;
using llvm::Value;
struct DebugInfo {
DebugInfo(LLVMContext* Ctx, Instruction* i);
Value* getScopeNumberValue();
Value* getLineNumberValue();
unsigned getLineNumberInt();
StringRef getVarName();
private:
Value* scopeNumberValue = NULL;
Value* lineNumberValue = NULL;
unsigned lineNumInt = 0;
StringRef varName;
};
#endif // MODULES_BACKEND_PASS_DEBUGINFO_HPP_