mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user