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 {
5757 uint32_t Type;
5858
5959private:
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.
6162 bool Optional = false ;
6263
6364public:
@@ -72,10 +73,10 @@ class Relocation {
7273 // / Return size in bytes of the given relocation \p Type.
7374 static size_t getSizeForType (uint32_t Type);
7475
75- // / Some relocations added by optimizations are optional, meaning they can be
76- // / omitted under certain circumstances.
7776 void setOptional () { Optional = true ; }
7877
78+ bool isOptional () { return Optional; }
79+
7980 // / Return size of this relocation.
8081 size_t getSize () const { return getSizeForType (Type); }
8182
You can’t perform that action at this time.
0 commit comments