aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-09-22 22:27:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-09-22 22:27:05 +0000
commit59ff3c913449402ad5447bbe3ae6338402fb84b0 (patch)
treecb9001433203273706549d7ef43c044962d38fae /include/llvm
parente07b75e069969558c3fbb2f5bfb9a652f6ea1d6b (diff)
downloadexternal_llvm-59ff3c913449402ad5447bbe3ae6338402fb84b0.zip
external_llvm-59ff3c913449402ad5447bbe3ae6338402fb84b0.tar.gz
external_llvm-59ff3c913449402ad5447bbe3ae6338402fb84b0.tar.bz2
Avoid some Mach-O specific alignment being done on ELF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCAssembler.h4
-rw-r--r--include/llvm/MC/MCObjectStreamer.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index d193b98..0def34c 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -605,6 +605,7 @@ private:
unsigned RelaxAll : 1;
unsigned SubsectionsViaSymbols : 1;
+ unsigned PadSectionToAlignment : 1;
private:
/// Evaluate a fixup to a relocatable expression and the value which should be
@@ -676,7 +677,8 @@ public:
// option is to make this abstract, and have targets provide concrete
// implementations as we do with AsmParser.
MCAssembler(MCContext &_Context, TargetAsmBackend &_Backend,
- MCCodeEmitter &_Emitter, raw_ostream &OS);
+ MCCodeEmitter &_Emitter, bool _PadSectionToAlignment,
+ raw_ostream &OS);
~MCAssembler();
MCContext &getContext() const { return Context; }
diff --git a/include/llvm/MC/MCObjectStreamer.h b/include/llvm/MC/MCObjectStreamer.h
index ea6d9c1..6836ec5 100644
--- a/include/llvm/MC/MCObjectStreamer.h
+++ b/include/llvm/MC/MCObjectStreamer.h
@@ -35,7 +35,8 @@ class MCObjectStreamer : public MCStreamer {
protected:
MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB,
- raw_ostream &_OS, MCCodeEmitter *_Emitter);
+ raw_ostream &_OS, MCCodeEmitter *_Emitter,
+ bool _PadSectionToAlignment);
~MCObjectStreamer();
MCSectionData *getCurrentSectionData() const {