OLD | NEW |
1 //===- subzero/src/IceFixups.h - Assembler fixup kinds ----------*- C++ -*-===// | 1 //===- subzero/src/IceFixups.h - Assembler fixup kinds ----------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
(...skipping 27 matching lines...) Expand all Loading... |
38 void set_kind(FixupKind Kind) { kind_ = Kind; } | 38 void set_kind(FixupKind Kind) { kind_ = Kind; } |
39 | 39 |
40 RelocOffsetT offset() const; | 40 RelocOffsetT offset() const; |
41 IceString symbol(const GlobalContext *Ctx) const; | 41 IceString symbol(const GlobalContext *Ctx) const; |
42 | 42 |
43 static const Constant *NullSymbol; | 43 static const Constant *NullSymbol; |
44 bool isNullSymbol() const { return value_ == NullSymbol; } | 44 bool isNullSymbol() const { return value_ == NullSymbol; } |
45 | 45 |
46 void set_value(const Constant *Value) { value_ = Value; } | 46 void set_value(const Constant *Value) { value_ = Value; } |
47 | 47 |
48 void emit(GlobalContext *Ctx, RelocOffsetT BaseOffset) const; | 48 void emit(GlobalContext *Ctx, RelocOffsetT OverrideOffset) const; |
49 | 49 |
50 private: | 50 private: |
51 intptr_t position_ = 0; | 51 intptr_t position_ = 0; |
52 FixupKind kind_ = 0; | 52 FixupKind kind_ = 0; |
53 const Constant *value_ = nullptr; | 53 const Constant *value_ = nullptr; |
54 }; | 54 }; |
55 | 55 |
56 typedef std::vector<AssemblerFixup> FixupList; | 56 typedef std::vector<AssemblerFixup> FixupList; |
57 typedef std::vector<AssemblerFixup *> FixupRefList; | 57 typedef std::vector<AssemblerFixup *> FixupRefList; |
58 | 58 |
59 } // end of namespace Ice | 59 } // end of namespace Ice |
60 | 60 |
61 #endif // SUBZERO_SRC_ICEFIXUPS_H | 61 #endif // SUBZERO_SRC_ICEFIXUPS_H |
OLD | NEW |