There are two reasons why we might want to use
[oota-llvm.git] / include / llvm / MC / MCAsmInfo.h
index d53318c6631934d1b90926add2b9b0cdf10118b1..0e6c4e7c75edaf5e73b9a80802da414ba539daef 100644 (file)
@@ -197,6 +197,13 @@ namespace llvm {
     /// HasSetDirective - True if the assembler supports the .set directive.
     bool HasSetDirective;                    // Defaults to true.
 
+    /// NeedsSetToChangeDiffSize - True if the assembler requires that we do
+    /// Lc = a - b
+    /// .long Lc
+    /// instead of doing
+    /// .long a - b
+    bool NeedsSetToChangeDiffSize;           // Defaults to false.
+
     /// HasLCOMMDirective - This is true if the target supports the .lcomm
     /// directive.
     bool HasLCOMMDirective;                  // Defaults to false.
@@ -400,6 +407,7 @@ namespace llvm {
       return ExternDirective;
     }
     bool hasSetDirective() const { return HasSetDirective; }
+    bool needsSetToChangeDiffSize() const { return NeedsSetToChangeDiffSize; }
     bool hasLCOMMDirective() const { return HasLCOMMDirective; }
     bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;}
     bool getCOMMDirectiveAlignmentIsInBytes() const {