diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-25 18:34:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-25 18:34:26 +0000 |
commit | cd62518369a8a711b26f6bcb85d727b5e386b2f1 (patch) | |
tree | 6f1442ec08d66b816e5a62ff13c74b9b76087cde /llvm/lib/MC/MachObjectWriter.cpp | |
parent | 0be4fa761f21505099bf904652b3e061b3ce732f (diff) | |
download | bcm5719-llvm-cd62518369a8a711b26f6bcb85d727b5e386b2f1.tar.gz bcm5719-llvm-cd62518369a8a711b26f6bcb85d727b5e386b2f1.zip |
Move HasInstructions to MCSection.
llvm-svn: 238150
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/MachObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index 45096d428b7..79de0f9a936 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -225,7 +225,7 @@ void MachObjectWriter::WriteSection(const MCAssembler &Asm, Write32(FileOffset); unsigned Flags = Section.getTypeAndAttributes(); - if (SD.hasInstructions()) + if (Section.hasInstructions()) Flags |= MachO::S_ATTR_SOME_INSTRUCTIONS; assert(isPowerOf2_32(Section.getAlignment()) && "Invalid alignment!"); |