22
22
using namespace llvm ;
23
23
24
24
RISCVConstantPoolValue::RISCVConstantPoolValue (LLVMContext &C,
25
- RISCVCP:: RISCVCPKind Kind)
25
+ RISCVCPKind Kind)
26
26
: MachineConstantPoolValue((Type *)Type::getInt64Ty(C)), Kind(Kind) {}
27
27
28
28
RISCVConstantPoolValue::RISCVConstantPoolValue (Type *Ty,
29
- RISCVCP:: RISCVCPKind Kind)
29
+ RISCVCPKind Kind)
30
30
: MachineConstantPoolValue(Ty), Kind(Kind) {}
31
31
32
32
int RISCVConstantPoolValue::getExistingMachineCPValue (MachineConstantPool *CP,
@@ -36,18 +36,18 @@ int RISCVConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
36
36
37
37
RISCVConstantPoolConstant::RISCVConstantPoolConstant (Type *Ty,
38
38
const Constant *GV,
39
- RISCVCP:: RISCVCPKind Kind)
39
+ RISCVCPKind Kind)
40
40
: RISCVConstantPoolValue(Ty, Kind), CVal(GV) {}
41
41
42
42
RISCVConstantPoolConstant *
43
43
RISCVConstantPoolConstant::Create (const GlobalValue *GV) {
44
- return new RISCVConstantPoolConstant (GV->getType (), GV, RISCVCP ::GlobalValue);
44
+ return new RISCVConstantPoolConstant (GV->getType (), GV, RISCVCPKind ::GlobalValue);
45
45
}
46
46
47
47
RISCVConstantPoolConstant *
48
48
RISCVConstantPoolConstant::Create (const BlockAddress *BA) {
49
49
return new RISCVConstantPoolConstant (BA->getType (), BA,
50
- RISCVCP ::BlockAddress);
50
+ RISCVCPKind ::BlockAddress);
51
51
}
52
52
53
53
int RISCVConstantPoolConstant::getExistingMachineCPValue (
@@ -73,7 +73,7 @@ const BlockAddress *RISCVConstantPoolConstant::getBlockAddress() const {
73
73
}
74
74
75
75
RISCVConstantPoolSymbol::RISCVConstantPoolSymbol (LLVMContext &C, StringRef s)
76
- : RISCVConstantPoolValue(C, RISCVCP ::ExtSymbol), S(s) {}
76
+ : RISCVConstantPoolValue(C, RISCVCPKind ::ExtSymbol), S(s) {}
77
77
78
78
RISCVConstantPoolSymbol *RISCVConstantPoolSymbol::Create (LLVMContext &C,
79
79
StringRef s) {
0 commit comments