Lines Matching refs:BC

44     const BinaryContext &BC) const {  in adjustCommandLineOptions()
45 if (!BC.HasRelocations) { in adjustCommandLineOptions()
54 if (!BC.StartFunctionAddress) { in adjustCommandLineOptions()
60 if (!BC.FiniFunctionAddress && !BC.IsStaticExecutable) { in adjustCommandLineOptions()
68 void InstrumentationRuntimeLibrary::emitBinary(BinaryContext &BC, in emitBinary() argument
70 MCSection *Section = BC.isELF() in emitBinary()
71 ? static_cast<MCSection *>(BC.Ctx->getELFSection( in emitBinary()
78 : static_cast<MCSection *>(BC.Ctx->getMachOSection( in emitBinary()
82 if (BC.IsStaticExecutable && !opts::InstrumentationSleepTime) { in emitBinary()
89 Section->setAlignment(llvm::Align(BC.RegularPageSize)); in emitBinary()
101 auto emitLabelByName = [&BC, emitLabel](StringRef Name, in emitBinary()
103 MCSymbol *Symbol = BC.Ctx->getOrCreateSymbol(Name); in emitBinary()
131 auto emitValue = [&BC, &Streamer, emitDataPadding, in emitBinary()
133 const unsigned Psize = BC.AsmInfo->getCodePointerSize(); in emitBinary()
165 emitPadding(BC.RegularPageSize); in emitBinary()
184 if (BC.isMachO()) { in emitBinary()
185 MCSection *TablesSection = BC.Ctx->getMachOSection( in emitBinary()
187 TablesSection->setAlignment(llvm::Align(BC.RegularPageSize)); in emitBinary()
189 emitString("__bolt_instr_tables", buildTables(BC)); in emitBinary()
194 BinaryContext &BC, StringRef ToolPath, RuntimeDyld &RTDyld, in link() argument
205 if (BC.isMachO()) in link()
230 emitTablesAsELFNote(BC); in link()
233 std::string InstrumentationRuntimeLibrary::buildTables(BinaryContext &BC) { in buildTables() argument
324 void InstrumentationRuntimeLibrary::emitTablesAsELFNote(BinaryContext &BC) { in emitTablesAsELFNote() argument
325 std::string TablesStr = buildTables(BC); in emitTablesAsELFNote()
328 BC.registerOrUpdateNoteSection(".bolt.instr.tables", copyByteArray(BoltInfo), in emitTablesAsELFNote()