Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: include/llvm/MC/MCAssembler.h

Issue 1133723005: Cherry-pick r234714: [MC] Write padding into fragments when -mc-relax-all flag is used (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/llvm/MC/MCAsmLayout.h ('k') | include/llvm/MC/MCELFStreamer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/llvm/MC/MCAsmLayout.h ('k') | include/llvm/MC/MCELFStreamer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698