summaryrefslogtreecommitdiff
path: root/test/MC/MachO/empty-dwarf-lines.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-04 03:21:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-04 03:21:47 +0000
commit5d4918dbd116b0b5e561c431b1ea527ee1b9302a (patch)
tree3c50fff76598829d12b03b798194dcc6f0ab039d /test/MC/MachO/empty-dwarf-lines.s
parent9ad8221bcb26643ae5837d7f27b41610eeec98a7 (diff)
downloadllvm-5d4918dbd116b0b5e561c431b1ea527ee1b9302a.tar.gz
llvm-5d4918dbd116b0b5e561c431b1ea527ee1b9302a.tar.bz2
llvm-5d4918dbd116b0b5e561c431b1ea527ee1b9302a.tar.xz
There are two reasons why we might want to use
foo = a - b .long foo instead of just .long a - b First, on darwin9 64 bits the assembler produces the wrong result. Second, if "a" is the end of the section all darwin assemblers (9, 10 and mc) will not consider a - b to be a constant but will if the dummy foo is created. Split how we handle these cases. The first one is something MC should take care of. The second one has to be handled by the caller. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO/empty-dwarf-lines.s')
-rw-r--r--test/MC/MachO/empty-dwarf-lines.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/MC/MachO/empty-dwarf-lines.s b/test/MC/MachO/empty-dwarf-lines.s
index 29ef218fdd..8d06d7363d 100644
--- a/test/MC/MachO/empty-dwarf-lines.s
+++ b/test/MC/MachO/empty-dwarf-lines.s
@@ -17,7 +17,7 @@ _c:
// CHECK-NEXT: ('offset', 452)
// CHECK-NEXT: ('alignment', 0)
// CHECK-NEXT: ('reloc_offset', 496)
-// CHECK-NEXT: ('num_reloc', 4)
+// CHECK-NEXT: ('num_reloc', 2)
// CHECK-NEXT: ('flags', 0x2000000)
// CHECK-NEXT: ('reserved1', 0)
// CHECK-NEXT: ('reserved2', 0)