mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
all supported target now have aligned common support.
llvm-svn: 94413
This commit is contained in:
parent
355085f393
commit
474395e815
@ -195,10 +195,6 @@ namespace llvm {
|
|||||||
/// directive.
|
/// directive.
|
||||||
bool HasLCOMMDirective; // Defaults to false.
|
bool HasLCOMMDirective; // Defaults to false.
|
||||||
|
|
||||||
/// COMMDirectiveTakesAlignment - True if COMMDirective take a third
|
|
||||||
/// argument that specifies the alignment of the declaration.
|
|
||||||
bool COMMDirectiveTakesAlignment; // Defaults to true.
|
|
||||||
|
|
||||||
/// HasDotTypeDotSizeDirective - True if the target has .type and .size
|
/// HasDotTypeDotSizeDirective - True if the target has .type and .size
|
||||||
/// directives, this is true for most ELF targets.
|
/// directives, this is true for most ELF targets.
|
||||||
bool HasDotTypeDotSizeDirective; // Defaults to true.
|
bool HasDotTypeDotSizeDirective; // Defaults to true.
|
||||||
@ -400,9 +396,6 @@ namespace llvm {
|
|||||||
return SetDirective;
|
return SetDirective;
|
||||||
}
|
}
|
||||||
bool hasLCOMMDirective() const { return HasLCOMMDirective; }
|
bool hasLCOMMDirective() const { return HasLCOMMDirective; }
|
||||||
bool getCOMMDirectiveTakesAlignment() const {
|
|
||||||
return COMMDirectiveTakesAlignment;
|
|
||||||
}
|
|
||||||
bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;}
|
bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;}
|
||||||
bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; }
|
bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; }
|
||||||
bool hasNoDeadStrip() const { return HasNoDeadStrip; }
|
bool hasNoDeadStrip() const { return HasNoDeadStrip; }
|
||||||
|
@ -53,7 +53,6 @@ MCAsmInfo::MCAsmInfo() {
|
|||||||
GlobalDirective = "\t.globl\t";
|
GlobalDirective = "\t.globl\t";
|
||||||
SetDirective = 0;
|
SetDirective = 0;
|
||||||
HasLCOMMDirective = false;
|
HasLCOMMDirective = false;
|
||||||
COMMDirectiveTakesAlignment = true;
|
|
||||||
HasDotTypeDotSizeDirective = true;
|
HasDotTypeDotSizeDirective = true;
|
||||||
HasSingleParameterDotFile = true;
|
HasSingleParameterDotFile = true;
|
||||||
HasNoDeadStrip = false;
|
HasNoDeadStrip = false;
|
||||||
|
@ -254,7 +254,7 @@ void MCAsmStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {
|
|||||||
void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
||||||
unsigned ByteAlignment) {
|
unsigned ByteAlignment) {
|
||||||
OS << "\t.comm\t" << *Symbol << ',' << Size;
|
OS << "\t.comm\t" << *Symbol << ',' << Size;
|
||||||
if (ByteAlignment != 0 && MAI.getCOMMDirectiveTakesAlignment()) {
|
if (ByteAlignment != 0) {
|
||||||
if (MAI.getAlignmentIsInBytes())
|
if (MAI.getAlignmentIsInBytes())
|
||||||
OS << ',' << ByteAlignment;
|
OS << ',' << ByteAlignment;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user