summaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmInfo.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-04 23:26:17 +0000
committerOwen Anderson <resistor@mac.com>2011-10-04 23:26:17 +0000
commit2fec6c5ff153786744ba7d0d302b73179731c5e9 (patch)
treee26ac690c53d7b863aff69bf5aebe25a66b125e1 /lib/MC/MCAsmInfo.cpp
parent9e5887b17e634b98f7c1cf0ee4f25c218097d08e (diff)
downloadllvm-2fec6c5ff153786744ba7d0d302b73179731c5e9.tar.gz
llvm-2fec6c5ff153786744ba7d0d302b73179731c5e9.tar.bz2
llvm-2fec6c5ff153786744ba7d0d302b73179731c5e9.tar.xz
Teach the MC to output code/data region marker labels in MachO and ELF modes. These are used by disassemblers to provide better disassembly, particularly on targets like ARM Thumb that like to intermingle data in the TEXT segment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmInfo.cpp')
-rw-r--r--lib/MC/MCAsmInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp
index 365df87d8d..f34b313ebd 100644
--- a/lib/MC/MCAsmInfo.cpp
+++ b/lib/MC/MCAsmInfo.cpp
@@ -57,6 +57,12 @@ MCAsmInfo::MCAsmInfo() {
Data16bitsDirective = "\t.short\t";
Data32bitsDirective = "\t.long\t";
Data64bitsDirective = "\t.quad\t";
+ DataBegin = "$d.";
+ CodeBegin = "$a.";
+ JT8Begin = "$d.";
+ JT16Begin = "$d.";
+ JT32Begin = "$d.";
+ SupportsDataRegions = true;
SunStyleELFSectionSwitchSyntax = false;
UsesELFSectionDirectiveForBSS = false;
AlignDirective = "\t.align\t";