Skip to content

Commit 769c4bf

Browse files
committed
fixup! add getVersion
1 parent fa22b40 commit 769c4bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/include/llvm/IR/DebugInfoMetadata.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ class DISourceLanguageName {
103103
return Name;
104104
}
105105

106+
/// Returns language version. Only valid for versioned language names.
107+
uint32_t getVersion() const {
108+
assert(hasVersionedName());
109+
return Version;
110+
}
111+
106112
DISourceLanguageName(uint16_t Lang, uint32_t Version)
107113
: Version(Version), Name(Lang), HasVersion(true) {};
108114
DISourceLanguageName(uint16_t Lang)

0 commit comments

Comments
 (0)