diff options
Diffstat (limited to 'llvm/tools/dsymutil/CompileUnit.h')
-rw-r--r-- | llvm/tools/dsymutil/CompileUnit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/dsymutil/CompileUnit.h b/llvm/tools/dsymutil/CompileUnit.h index 6e3c2c669e0..e0f5d3bc65b 100644 --- a/llvm/tools/dsymutil/CompileUnit.h +++ b/llvm/tools/dsymutil/CompileUnit.h @@ -114,6 +114,8 @@ public: bool hasODR() const { return HasODR; } bool isClangModule() const { return !ClangModuleName.empty(); } + uint16_t getLanguage(); + const std::string &getClangModuleName() const { return ClangModuleName; } DIEInfo &getInfo(unsigned Idx) { return Info[Idx]; } @@ -316,6 +318,9 @@ private: /// Did a DIE actually contain a valid reloc? bool HasInterestingContent; + /// The DW_AT_language of this unit. + uint16_t Language = 0; + /// If this is a Clang module, this holds the module's name. std::string ClangModuleName; }; |