| OLD | NEW |
| 1 //===- subzero/src/IceELFObjectWriter.cpp - ELF object file writer --------===// | 1 //===- subzero/src/IceELFObjectWriter.cpp - ELF object file writer --------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file defines the writer for ELF relocatable object files. | 10 // This file defines the writer for ELF relocatable object files. |
| 11 // | 11 // |
| 12 //===----------------------------------------------------------------------===// | 12 //===----------------------------------------------------------------------===// |
| 13 | 13 |
| 14 #include "IceELFObjectWriter.h" |
| 15 |
| 14 #include "llvm/Support/MathExtras.h" | 16 #include "llvm/Support/MathExtras.h" |
| 15 | 17 |
| 16 #include "IceAssembler.h" | 18 #include "IceAssembler.h" |
| 17 #include "IceDefs.h" | 19 #include "IceDefs.h" |
| 18 #include "IceELFObjectWriter.h" | |
| 19 #include "IceELFSection.h" | 20 #include "IceELFSection.h" |
| 20 #include "IceELFStreamer.h" | 21 #include "IceELFStreamer.h" |
| 21 #include "IceGlobalContext.h" | 22 #include "IceGlobalContext.h" |
| 22 #include "IceGlobalInits.h" | 23 #include "IceGlobalInits.h" |
| 23 #include "IceOperand.h" | 24 #include "IceOperand.h" |
| 24 | 25 |
| 25 using namespace llvm::ELF; | 26 using namespace llvm::ELF; |
| 26 | 27 |
| 27 namespace Ice { | 28 namespace Ice { |
| 28 | 29 |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 if (ELF64) { | 618 if (ELF64) { |
| 618 writeELFHeaderInternal<true>(ShOffset, ShStrTab->getNumber(), | 619 writeELFHeaderInternal<true>(ShOffset, ShStrTab->getNumber(), |
| 619 AllSections.size()); | 620 AllSections.size()); |
| 620 } else { | 621 } else { |
| 621 writeELFHeaderInternal<false>(ShOffset, ShStrTab->getNumber(), | 622 writeELFHeaderInternal<false>(ShOffset, ShStrTab->getNumber(), |
| 622 AllSections.size()); | 623 AllSections.size()); |
| 623 } | 624 } |
| 624 } | 625 } |
| 625 | 626 |
| 626 } // end of namespace Ice | 627 } // end of namespace Ice |
| OLD | NEW |