| 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 // This file declares generic fixup types. | 10 // This file declares generic fixup types. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void set_kind(FixupKind Kind) { kind_ = Kind; } | 37 void set_kind(FixupKind Kind) { kind_ = Kind; } |
| 38 | 38 |
| 39 RelocOffsetT offset() const; | 39 RelocOffsetT offset() const; |
| 40 IceString symbol(const GlobalContext *Ctx) const; | 40 IceString symbol(const GlobalContext *Ctx) const; |
| 41 | 41 |
| 42 static const Constant *NullSymbol; | 42 static const Constant *NullSymbol; |
| 43 bool isNullSymbol() const { return value_ == NullSymbol; } | 43 bool isNullSymbol() const { return value_ == NullSymbol; } |
| 44 | 44 |
| 45 void set_value(const Constant *Value) { value_ = Value; } | 45 void set_value(const Constant *Value) { value_ = Value; } |
| 46 | 46 |
| 47 void emit(GlobalContext *Ctx) const; | 47 void emit(GlobalContext *Ctx, RelocOffsetT BaseOffset) const; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 intptr_t position_; | 50 intptr_t position_; |
| 51 FixupKind kind_; | 51 FixupKind kind_; |
| 52 const Constant *value_; | 52 const Constant *value_; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 typedef std::vector<AssemblerFixup> FixupList; | 55 typedef std::vector<AssemblerFixup> FixupList; |
| 56 typedef std::vector<AssemblerFixup *> FixupRefList; | 56 typedef std::vector<AssemblerFixup *> FixupRefList; |
| 57 | 57 |
| 58 } // end of namespace Ice | 58 } // end of namespace Ice |
| 59 | 59 |
| 60 #endif // SUBZERO_SRC_ICEFIXUPS_H | 60 #endif // SUBZERO_SRC_ICEFIXUPS_H |
| OLD | NEW |