| 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 } | 38 } |
| 39 void set_position(intptr_t Position) { | 39 void set_position(intptr_t Position) { |
| 40 position_ = Position; | 40 position_ = Position; |
| 41 position_was_set_ = true; | 41 position_was_set_ = true; |
| 42 } | 42 } |
| 43 | 43 |
| 44 FixupKind kind() const { return kind_; } | 44 FixupKind kind() const { return kind_; } |
| 45 void set_kind(FixupKind Kind) { kind_ = Kind; } | 45 void set_kind(FixupKind Kind) { kind_ = Kind; } |
| 46 | 46 |
| 47 RelocOffsetT offset() const; | 47 RelocOffsetT offset() const; |
| 48 IceString symbol(const GlobalContext *Ctx, const Assembler *Asm) const; | 48 IceString symbol(const Assembler *Asm) const; |
| 49 | 49 |
| 50 static const Constant *NullSymbol; | 50 static const Constant *NullSymbol; |
| 51 bool isNullSymbol() const { return value_ == NullSymbol; } | 51 bool isNullSymbol() const { return value_ == NullSymbol; } |
| 52 | 52 |
| 53 static constexpr AssemblerFixup *NoFixup = nullptr; | 53 static constexpr AssemblerFixup *NoFixup = nullptr; |
| 54 | 54 |
| 55 void set_value(const Constant *Value) { value_ = Value; } | 55 void set_value(const Constant *Value) { value_ = Value; } |
| 56 | 56 |
| 57 void set_addend(RelocOffsetT Addend) { addend_ = Addend; } | 57 void set_addend(RelocOffsetT Addend) { addend_ = Addend; } |
| 58 RelocOffsetT get_addend() const { return addend_; } | 58 RelocOffsetT get_addend() const { return addend_; } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const std::string Message; | 92 const std::string Message; |
| 93 const size_t NumBytes; | 93 const size_t NumBytes; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 using FixupList = std::vector<AssemblerFixup>; | 96 using FixupList = std::vector<AssemblerFixup>; |
| 97 using FixupRefList = std::vector<AssemblerFixup *>; | 97 using FixupRefList = std::vector<AssemblerFixup *>; |
| 98 | 98 |
| 99 } // end of namespace Ice | 99 } // end of namespace Ice |
| 100 | 100 |
| 101 #endif // SUBZERO_SRC_ICEFIXUPS_H | 101 #endif // SUBZERO_SRC_ICEFIXUPS_H |
| OLD | NEW |