summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2014-05-01 08:46:02 +0000
committerOliver Stannard <oliver.stannard@arm.com>2014-05-01 08:46:02 +0000
commit5604ab9da4dadbfec85c650da27f841932c9cde8 (patch)
tree16df1929140d3df5e62f09808cf45474267929d5 /include
parenta1a235f869cd1c7d2716ab20242f06589775442e (diff)
downloadllvm-5604ab9da4dadbfec85c650da27f841932c9cde8.tar.gz
llvm-5604ab9da4dadbfec85c650da27f841932c9cde8.tar.bz2
llvm-5604ab9da4dadbfec85c650da27f841932c9cde8.tar.xz
Record the DWARF version in MCContext
Record the DWARF version in MCContext, and use it when emitting the dwarf version into the debug info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCContext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h
index d2397154b4..7557e7629b 100644
--- a/include/llvm/MC/MCContext.h
+++ b/include/llvm/MC/MCContext.h
@@ -147,6 +147,9 @@ namespace llvm {
/// non-empty.
StringRef DwarfDebugProducer;
+ /// The maximum version of dwarf that we should emit.
+ uint16_t DwarfVersion;
+
/// Honor temporary labels, this is useful for debugging semantic
/// differences between temporary and non-temporary labels (primarily on
/// Darwin).
@@ -396,6 +399,9 @@ namespace llvm {
void setDwarfDebugProducer(StringRef S) { DwarfDebugProducer = S; }
StringRef getDwarfDebugProducer() { return DwarfDebugProducer; }
+ void setDwarfVersion(uint16_t v) { DwarfVersion = v; }
+ uint16_t getDwarfVersion() const { return DwarfVersion; }
+
/// @}
char *getSecureLogFile() { return SecureLogFile; }