Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: src/IceFixups.h

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698