Skip to content

Commit f2be856

Browse files
committed
More updates
1 parent 18cd9eb commit f2be856

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/include/llvm/BinaryFormat/GOFF.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ enum SubsectionKind : uint8_t {
174174
// in a byte as bit zero. The Flags type helps to set bits in byte according
175175
// to this numeration order.
176176
class Flags {
177-
uint8_t Val;
177+
uint8_t Val = 0;
178178

179179
constexpr static uint8_t bits(uint8_t BitIndex, uint8_t Length, uint8_t Value,
180180
uint8_t OldValue) {
@@ -185,7 +185,7 @@ class Flags {
185185
}
186186

187187
public:
188-
constexpr Flags() : Val(0) {}
188+
constexpr Flags() = default;
189189
constexpr Flags(uint8_t BitIndex, uint8_t Length, uint8_t Value)
190190
: Val(bits(BitIndex, Length, Value, 0)) {}
191191

@@ -204,7 +204,7 @@ class Flags {
204204
};
205205

206206
// Structure for the flag field of a symbol. See
207-
// https://www.ibm.com/docs/en/zos/3.1.0?topic=formats-external-symbol-definition-record,
207+
// https://www.ibm.com/docs/en/zos/3.1.0?topic=formats-external-symbol-definition-record ,
208208
// offset 41, for the definition.
209209
struct SymbolFlags {
210210
Flags SymFlags;
@@ -221,7 +221,7 @@ struct SymbolFlags {
221221

222222
#undef GOFF_SYMBOL_FLAG
223223

224-
constexpr operator uint8_t() const { return static_cast<uint8_t>(SymFlags); }
224+
constexpr operator uint8_t() const { return static_cast<uint8_t>(SymFlags); }
225225
};
226226

227227
// Structure for the behavioral attributes. See

llvm/include/llvm/MC/MCGOFFSymbolMapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MCSectionGOFF;
3232
// location of data. For example, the equivalent of the ELF .text section is
3333
// made up of a Section Definition (SD) and a class (Element Definition; ED).
3434
// The name of the SD symbol depends on the application, while the class has the
35-
// predefined name C_CODE64.
35+
// predefined name C_CODE/C_CODE64 in AMODE31 and AMODE64 respectively.
3636
//
3737
// Data can be placed into this structure in 2 ways. First, the data (in a text
3838
// record) can be associated with an ED symbol. To refer to data, a Label

0 commit comments

Comments
 (0)