mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
MC/Mach-O: Fix regression introduced in r126127, this assignment shouldn't have
been removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7bbf0ee97c
commit
8d06ffca9b
@ -434,7 +434,8 @@ bool DarwinAsmParser::ParseDirectiveSection(StringRef, SMLoc) {
|
|||||||
|
|
||||||
|
|
||||||
StringRef Segment, Section;
|
StringRef Segment, Section;
|
||||||
unsigned TAA, StubSize;
|
unsigned StubSize;
|
||||||
|
unsigned TAA = 0;
|
||||||
std::string ErrorStr =
|
std::string ErrorStr =
|
||||||
MCSectionMachO::ParseSectionSpecifier(SectionSpec, Segment, Section,
|
MCSectionMachO::ParseSectionSpecifier(SectionSpec, Segment, Section,
|
||||||
TAA, StubSize);
|
TAA, StubSize);
|
||||||
|
7
test/MC/MachO/section-attributes.s
Normal file
7
test/MC/MachO/section-attributes.s
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o %t
|
||||||
|
// RUN: macho-dump %t | FileCheck %s
|
||||||
|
|
||||||
|
// CHECK: # Section 1
|
||||||
|
// CHECK: ('flags', 0x0)
|
||||||
|
.section __TEXT,__objc_opt_ro
|
||||||
|
.long 0
|
Loading…
x
Reference in New Issue
Block a user