add a bool for whether .lcomm takes an alignment instead of basing this on "isdarwin".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-19 04:48:20 +00:00
parent 48d64ba9d8
commit 7517b249ca
6 changed files with 21 additions and 11 deletions

View File

@@ -202,6 +202,10 @@ namespace llvm {
/// argument that specifies the alignment of the declaration.
bool COMMDirectiveTakesAlignment; // Defaults to true.
/// LCOMMDirectiveTakesAlignment - True if LCOMMDirective takes a third
/// argument that specifies the alignment of the declaration.
bool LCOMMDirectiveTakesAlignment; // Defaults to false.
/// HasDotTypeDotSizeDirective - True if the target has .type and .size
/// directives, this is true for most ELF targets.
bool HasDotTypeDotSizeDirective; // Defaults to true.
@@ -410,6 +414,9 @@ namespace llvm {
bool getCOMMDirectiveTakesAlignment() const {
return COMMDirectiveTakesAlignment;
}
bool getLCOMMDirectiveTakesAlignment() const {
return LCOMMDirectiveTakesAlignment;
}
bool hasDotTypeDotSizeDirective() const {
return HasDotTypeDotSizeDirective;
}