File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ class Relocation {
57
57
uint32_t Type;
58
58
59
59
private:
60
- // / Relocations added by optimizations can be optional.
60
+ // / Relocations added by optimizations can be optional, meaning they can be
61
+ // / omitted under certain circumstances.
61
62
bool Optional = false ;
62
63
63
64
public:
@@ -72,10 +73,10 @@ class Relocation {
72
73
// / Return size in bytes of the given relocation \p Type.
73
74
static size_t getSizeForType (uint32_t Type);
74
75
75
- // / Some relocations added by optimizations are optional, meaning they can be
76
- // / omitted under certain circumstances.
77
76
void setOptional () { Optional = true ; }
78
77
78
+ bool isOptional () { return Optional; }
79
+
79
80
// / Return size of this relocation.
80
81
size_t getSize () const { return getSizeForType (Type); }
81
82
You can’t perform that action at this time.
0 commit comments