diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-03-28 22:49:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-03-28 22:49:15 +0000 |
commit | c6cf43d25853efb4a6765954eda52a45998a47f2 (patch) | |
tree | 154af0ed2d8ee6851d48b983b2170362032061bf /include | |
parent | cede7c05518b8eea67da7e48d0952cc485764737 (diff) | |
download | external_llvm-c6cf43d25853efb4a6765954eda52a45998a47f2.zip external_llvm-c6cf43d25853efb4a6765954eda52a45998a47f2.tar.gz external_llvm-c6cf43d25853efb4a6765954eda52a45998a47f2.tar.bz2 |
MC: Add support for disabling "temporary label" behavior. Useful for debugging
on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCContext.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 7b26d54..f627976 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -84,6 +84,11 @@ namespace llvm { MCDwarfLoc CurrentDwarfLoc; bool DwarfLocSeen; + /// Honor temporary labels, this is useful for debugging semantic + /// differences between temporary and non-temporary labels (primarily on + /// Darwin). + bool AllowTemporaryLabels; + /// The dwarf line information from the .loc directives for the sections /// with assembled machine instructions have after seeing .loc directives. DenseMap<const MCSection *, MCLineSection *> MCLineSections; @@ -109,6 +114,8 @@ namespace llvm { const TargetAsmInfo &getTargetAsmInfo() const { return *TAI; } + void setAllowTemporaryLabels(bool Value) { AllowTemporaryLabels = Value; } + /// @name Symbol Management /// @{ |