Remember the contents of leb and dwarfline fragments when relaxing. This avoids
[oota-llvm.git] / lib / MC / MCSectionMachO.cpp
index 0b74636d422203a6a45fc1348afcc582d7fa894c..43268e63bbd2925612d75eb930db8d6e66ccaaab 100644 (file)
@@ -152,6 +152,12 @@ bool MCSectionMachO::UseCodeAlign() const {
   return hasAttribute(MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS);
 }
 
+bool MCSectionMachO::isVirtualSection() const {
+  return (getType() == MCSectionMachO::S_ZEROFILL ||
+          getType() == MCSectionMachO::S_GB_ZEROFILL ||
+          getType() == MCSectionMachO::S_THREAD_LOCAL_ZEROFILL);
+}
+
 /// StripSpaces - This removes leading and trailing spaces from the StringRef.
 static void StripSpaces(StringRef &Str) {
   while (!Str.empty() && isspace(Str[0]))