summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCSectionMachO.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-05 17:22:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-05 17:22:39 +0000
commitae7fb0b03ebc524e6c47f0262b8dc87810fee1a8 (patch)
treea58664e15701d25d0c42a7211ee2aa3a7279a024 /include/llvm/MC/MCSectionMachO.h
parente4eae84f76940e429711ca8908b8d22ac83440cc (diff)
downloadllvm-ae7fb0b03ebc524e6c47f0262b8dc87810fee1a8.tar.gz
llvm-ae7fb0b03ebc524e6c47f0262b8dc87810fee1a8.tar.bz2
llvm-ae7fb0b03ebc524e6c47f0262b8dc87810fee1a8.tar.xz
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.h3
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