forked from OSchip/llvm-project
dummy comment typo fix commit to cycle the bots
llvm-svn: 374270
This commit is contained in:
parent
da2bde9e34
commit
79a8476d43
|
@ -135,7 +135,7 @@ private:
|
|||
static std::vector<std::vector<DefinedImportData *>>
|
||||
binImports(const std::vector<DefinedImportData *> &imports) {
|
||||
// Group DLL-imported symbols by DLL name because that's how
|
||||
// symbols are layed out in the import descriptor table.
|
||||
// symbols are laid out in the import descriptor table.
|
||||
auto less = [](const std::string &a, const std::string &b) {
|
||||
return config->dllOrder[a] < config->dllOrder[b];
|
||||
};
|
||||
|
|
|
@ -718,8 +718,7 @@ static std::string getImplibPath() {
|
|||
return out.str();
|
||||
}
|
||||
|
||||
//
|
||||
// The import name is caculated as the following:
|
||||
// The import name is calculated as follows:
|
||||
//
|
||||
// | LIBRARY w/ ext | LIBRARY w/o ext | no LIBRARY
|
||||
// -----+----------------+---------------------+------------------
|
||||
|
|
|
@ -77,7 +77,7 @@ private:
|
|||
// section is insignificant to the user program and the behaviour matches that
|
||||
// of the Visual C++ linker.
|
||||
bool ICF::isEligible(SectionChunk *c) {
|
||||
// Non-comdat chunks, dead chunks, and writable chunks are not elegible.
|
||||
// Non-comdat chunks, dead chunks, and writable chunks are not eligible.
|
||||
bool writable = c->getOutputCharacteristics() & llvm::COFF::IMAGE_SCN_MEM_WRITE;
|
||||
if (!c->isCOMDAT() || !c->live || writable)
|
||||
return false;
|
||||
|
@ -274,7 +274,7 @@ void ICF::run(ArrayRef<Chunk *> vec) {
|
|||
for (Symbol *b : sc->symbols())
|
||||
if (auto *sym = dyn_cast_or_null<DefinedRegular>(b))
|
||||
hash += sym->getChunk()->eqClass[cnt % 2];
|
||||
// Set MSB to 1 to avoid collisions with non-hash classs.
|
||||
// Set MSB to 1 to avoid collisions with non-hash classes.
|
||||
sc->eqClass[(cnt + 1) % 2] = hash | (1U << 31);
|
||||
});
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ void ICF::run(ArrayRef<Chunk *> vec) {
|
|||
|
||||
log("ICF needed " + Twine(cnt) + " iterations");
|
||||
|
||||
// Merge sections in the same classs.
|
||||
// Merge sections in the same classes.
|
||||
forEachClass([&](size_t begin, size_t end) {
|
||||
if (end - begin == 1)
|
||||
return;
|
||||
|
|
|
@ -599,7 +599,7 @@ Optional<Symbol *> ObjFile::createDefined(
|
|||
// Comdat handling.
|
||||
// A comdat symbol consists of two symbol table entries.
|
||||
// The first symbol entry has the name of the section (e.g. .text), fixed
|
||||
// values for the other fields, and one auxilliary record.
|
||||
// values for the other fields, and one auxiliary record.
|
||||
// The second symbol entry has the name of the comdat symbol, called the
|
||||
// "comdat leader".
|
||||
// When this function is called for the first symbol entry of a comdat,
|
||||
|
@ -669,7 +669,7 @@ ArrayRef<uint8_t> ObjFile::getDebugSection(StringRef secName) {
|
|||
return {};
|
||||
}
|
||||
|
||||
// OBJ files systematically store critical informations in a .debug$S stream,
|
||||
// OBJ files systematically store critical information in a .debug$S stream,
|
||||
// even if the TU was compiled with no debug info. At least two records are
|
||||
// always there. S_OBJNAME stores a 32-bit signature, which is loaded into the
|
||||
// PCHSignature member. S_COMPILE3 stores compile-time cmd-line flags. This is
|
||||
|
|
|
@ -55,7 +55,7 @@ AutoExporter::AutoExporter() {
|
|||
// C++ symbols
|
||||
"__rtti_",
|
||||
"__builtin_",
|
||||
// Artifical symbols such as .refptr
|
||||
// Artificial symbols such as .refptr
|
||||
".",
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue