| 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 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 void set_position(intptr_t Position) { | 38 void set_position(intptr_t Position) { |
| 39 position_ = Position; | 39 position_ = Position; |
| 40 position_was_set_ = true; | 40 position_was_set_ = true; |
| 41 } | 41 } |
| 42 | 42 |
| 43 FixupKind kind() const { return kind_; } | 43 FixupKind kind() const { return kind_; } |
| 44 void set_kind(FixupKind Kind) { kind_ = Kind; } | 44 void set_kind(FixupKind Kind) { kind_ = Kind; } |
| 45 | 45 |
| 46 RelocOffsetT offset() const; | 46 RelocOffsetT offset() const; |
| 47 IceString symbol(const GlobalContext *Ctx) const; | 47 IceString symbol(const GlobalContext *Ctx, const Assembler *Asm) const; |
| 48 | 48 |
| 49 static const Constant *NullSymbol; | 49 static const Constant *NullSymbol; |
| 50 bool isNullSymbol() const { return value_ == NullSymbol; } | 50 bool isNullSymbol() const { return value_ == NullSymbol; } |
| 51 | 51 |
| 52 static constexpr AssemblerFixup *NoFixup = nullptr; | 52 static constexpr AssemblerFixup *NoFixup = nullptr; |
| 53 | 53 |
| 54 void set_value(const Constant *Value) { value_ = Value; } | 54 void set_value(const Constant *Value) { value_ = Value; } |
| 55 | 55 |
| 56 /// Emits fixup, then returns the number of bytes to skip. | 56 /// Emits fixup, then returns the number of bytes to skip. |
| 57 virtual size_t emit(GlobalContext *Ctx, const Assembler &Asm) const; | 57 virtual size_t emit(GlobalContext *Ctx, const Assembler &Asm) const; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 81 const std::string Message; | 81 const std::string Message; |
| 82 const size_t NumBytes; | 82 const size_t NumBytes; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 using FixupList = std::vector<AssemblerFixup>; | 85 using FixupList = std::vector<AssemblerFixup>; |
| 86 using FixupRefList = std::vector<AssemblerFixup *>; | 86 using FixupRefList = std::vector<AssemblerFixup *>; |
| 87 | 87 |
| 88 } // end of namespace Ice | 88 } // end of namespace Ice |
| 89 | 89 |
| 90 #endif // SUBZERO_SRC_ICEFIXUPS_H | 90 #endif // SUBZERO_SRC_ICEFIXUPS_H |
| OLD | NEW |