summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0ca562ec4c8422938535ea8512c58444a50a07d8 (patch)
tree41b1cb3f3e6deecdfdf1a34f678c88edd63fa102 /llvm/lib/MC/MCAsmInfo.cpp
parent486ed05105c1e8f99f85f7ae6e482478fa8326e7 (diff)
downloadbcm5719-llvm-0ca562ec4c8422938535ea8512c58444a50a07d8.tar.gz
bcm5719-llvm-0ca562ec4c8422938535ea8512c58444a50a07d8.zip
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.
llvm-svn: 141135
Diffstat (limited to 'llvm/lib/MC/MCAsmInfo.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index 365df87d8db..f34b313ebd0 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/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";
OpenPOWER on IntegriCloud