summaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmInfo.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-07-07 20:30:33 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-07-07 20:30:33 +0000
commit3014b2f3228e1aac1a70598f50d66f1afcc16714 (patch)
treef8f2d6cff3ad5e05f73012e9818f8bc58ed7f968 /lib/MC/MCAsmInfo.cpp
parent17a2f8e551dd4a772d389d1a193235ae56f8a399 (diff)
downloadllvm-3014b2f3228e1aac1a70598f50d66f1afcc16714.tar.gz
llvm-3014b2f3228e1aac1a70598f50d66f1afcc16714.tar.bz2
llvm-3014b2f3228e1aac1a70598f50d66f1afcc16714.tar.xz
This patch adds a flag in MCAsmInfo that indicates whether dwarf register
numbers should be printed instead of symbolic register names in MCAsmStreamer::EmitRegisterName. This is necessary because some versions of GNU assembler won't accept code in which symbolic register names are used in cfi directives. There is no change in behavior unless the flag is explicitly set to true by a backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmInfo.cpp')
-rw-r--r--lib/MC/MCAsmInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp
index 73b259eaa0..b8ce24b78f 100644
--- a/lib/MC/MCAsmInfo.cpp
+++ b/lib/MC/MCAsmInfo.cpp
@@ -78,6 +78,7 @@ MCAsmInfo::MCAsmInfo() {
DwarfRequiresRelocationForSectionOffset = true;
DwarfSectionOffsetDirective = 0;
DwarfUsesLabelOffsetForRanges = true;
+ DwarfRegNumForCFI = false;
HasMicrosoftFastStdCallMangling = false;
AsmTransCBE = 0;