diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-05 17:22:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-05 17:22:39 +0000 |
commit | ae7fb0b03ebc524e6c47f0262b8dc87810fee1a8 (patch) | |
tree | a58664e15701d25d0c42a7211ee2aa3a7279a024 /include/llvm/MC/MCSectionMachO.h | |
parent | e4eae84f76940e429711ca8908b8d22ac83440cc (diff) |
MC/Mach-O/x86_64: Relocations in debug sections should use local relocations
when possible.
- <rdar://problem/7934873>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionMachO.h')
-rw-r--r-- | include/llvm/MC/MCSectionMachO.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSectionMachO.h b/include/llvm/MC/MCSectionMachO.h index f3bc8edd84..2e634b03ed 100644 --- a/include/llvm/MC/MCSectionMachO.h +++ b/include/llvm/MC/MCSectionMachO.h @@ -136,6 +136,9 @@ public: unsigned getStubSize() const { return Reserved2; } unsigned getType() const { return TypeAndAttributes & SECTION_TYPE; } + bool hasAttribute(unsigned Value) const { + return (TypeAndAttributes & Value) != 0; + } /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec". /// This is a string that can appear after a .section directive in a mach-o |