OLD | NEW |
1 //===- MCAssembler.h - Object File Generation -------------------*- C++ -*-===// | 1 //===- MCAssembler.h - Object File Generation -------------------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
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 #ifndef LLVM_MC_MCASSEMBLER_H | 10 #ifndef LLVM_MC_MCASSEMBLER_H |
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 const_file_name_iterator file_names_end() const { | 1236 const_file_name_iterator file_names_end() const { |
1237 return FileNames.end(); | 1237 return FileNames.end(); |
1238 } | 1238 } |
1239 | 1239 |
1240 void addFileName(StringRef FileName) { | 1240 void addFileName(StringRef FileName) { |
1241 if (std::find(file_names_begin(), file_names_end(), FileName) == | 1241 if (std::find(file_names_begin(), file_names_end(), FileName) == |
1242 file_names_end()) | 1242 file_names_end()) |
1243 FileNames.push_back(FileName); | 1243 FileNames.push_back(FileName); |
1244 } | 1244 } |
1245 | 1245 |
| 1246 /// \brief Write the necessary bundle padding to the given object writer. |
| 1247 /// Expects a fragment \p F containing instructions and its size \p FSize. |
| 1248 void writeFragmentPadding(const MCFragment &F, uint64_t FSize, |
| 1249 MCObjectWriter *OW) const; |
| 1250 |
1246 /// @} | 1251 /// @} |
1247 | 1252 |
1248 void dump(); | 1253 void dump(); |
1249 }; | 1254 }; |
1250 | 1255 |
| 1256 /// \brief Compute the amount of padding required before the fragment \p F to |
| 1257 /// obey bundling restrictions, where \p FOffset is the fragment's offset in |
| 1258 /// its section and \p FSize is the fragment's size. |
| 1259 uint64_t computeBundlePadding(const MCAssembler &Assembler, |
| 1260 const MCFragment *F, |
| 1261 uint64_t FOffset, uint64_t FSize); |
| 1262 |
1251 } // end namespace llvm | 1263 } // end namespace llvm |
1252 | 1264 |
1253 #endif | 1265 #endif |
OLD | NEW |