diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-01-26 20:21:43 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-01-26 20:21:43 +0000 |
| commit | 8fd77a1841661ee1254e50baf3afb58cb0a395b7 (patch) | |
| tree | 8bde9acbfe36cb0089d7e16f7e6349f510b1feb9 /include/llvm/MC/MCAsmInfo.h | |
| parent | 1fd0182a85e201f0b92773d9edaae8869fa190df (diff) | |
| download | external_llvm-8fd77a1841661ee1254e50baf3afb58cb0a395b7.zip external_llvm-8fd77a1841661ee1254e50baf3afb58cb0a395b7.tar.gz external_llvm-8fd77a1841661ee1254e50baf3afb58cb0a395b7.tar.bz2 | |
Emit .comm alignment in bytes but .align in powers of 2 for ARM ELF.
Original patch by Sandeep Patel and updated by me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
| -rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 614639e..1703a69 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -181,6 +181,10 @@ namespace llvm { /// directive. bool HasLCOMMDirective; // Defaults to false. + /// COMMDirectiveAlignmentIsInBytes - True is COMMDirective's optional + /// alignment is to be specified in bytes instead of log2(n). + bool COMMDirectiveAlignmentIsInBytes; // Defaults to true; + /// HasDotTypeDotSizeDirective - True if the target has .type and .size /// directives, this is true for most ELF targets. bool HasDotTypeDotSizeDirective; // Defaults to true. @@ -378,6 +382,9 @@ namespace llvm { } bool hasLCOMMDirective() const { return HasLCOMMDirective; } bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;} + bool getCOMMDirectiveAlignmentIsInBytes() const { + return COMMDirectiveAlignmentIsInBytes; + } bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; } bool hasNoDeadStrip() const { return HasNoDeadStrip; } const char *getWeakRefDirective() const { return WeakRefDirective; } |
