summaryrefslogtreecommitdiffstats
path: root/llvm/tools/dsymutil/CompileUnit.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/dsymutil/CompileUnit.h')
-rw-r--r--llvm/tools/dsymutil/CompileUnit.h5
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;
};
OpenPOWER on IntegriCloud