diff options
author | Owen Anderson <resistor@mac.com> | 2011-10-04 23:26:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-10-04 23:26:17 +0000 |
commit | 0ca562ec4c8422938535ea8512c58444a50a07d8 (patch) | |
tree | 41b1cb3f3e6deecdfdf1a34f678c88edd63fa102 /llvm/lib/MC/MCAsmInfo.cpp | |
parent | 486ed05105c1e8f99f85f7ae6e482478fa8326e7 (diff) | |
download | bcm5719-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.cpp | 6 |
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"; |