Skip to content

Commit 42fddab

Browse files
committed
nits
1 parent 5ff06c7 commit 42fddab

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

llvm/include/llvm/IR/DebugInfoMetadata.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,18 +2267,21 @@ class DILocation : public MDNode {
22672267
getRawInlinedAt(), isImplicitCode(), getAtomGroup(),
22682268
getAtomRank());
22692269
}
2270+
22702271
public:
22712272
uint64_t getAtomGroup() const {
22722273
#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
22732274
return AtomGroup;
2274-
#endif
2275+
#else
22752276
return 0;
2277+
#endif
22762278
}
22772279
uint8_t getAtomRank() const {
22782280
#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
22792281
return AtomRank;
2280-
#endif
2282+
#else
22812283
return 0;
2284+
#endif
22822285
}
22832286

22842287
// Disallow replacing operands.

llvm/lib/AsmParser/LLParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5319,7 +5319,7 @@ bool LLParser::parseSpecializedMDNode(MDNode *&N, bool IsDistinct) {
53195319

53205320
/// parseDILocationFields:
53215321
/// ::= !DILocation(line: 43, column: 8, scope: !5, inlinedAt: !6,
5322-
/// isImplicitCode: true)
5322+
/// isImplicitCode: true, atomGroup: 1, atomRank: 1)
53235323
bool LLParser::parseDILocation(MDNode *&Result, bool IsDistinct) {
53245324
#define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \
53255325
OPTIONAL(line, LineField, ); \

0 commit comments

Comments
 (0)