File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -836,9 +836,9 @@ void ObjCSelRefsSection::initialize() {
836
836
}
837
837
}
838
838
839
- ConcatInputSection *ObjCSelRefsSection::makeSelRef (StringRef methName ) {
839
+ ConcatInputSection *ObjCSelRefsSection::makeSelRef (StringRef methname ) {
840
840
auto methnameOffset =
841
- in.objcMethnameSection ->getStringOffset (methName ).outSecOff ;
841
+ in.objcMethnameSection ->getStringOffset (methname ).outSecOff ;
842
842
843
843
size_t wordSize = target->wordSize ;
844
844
uint8_t *selrefData = bAlloc ().Allocate <uint8_t >(wordSize);
@@ -857,12 +857,12 @@ ConcatInputSection *ObjCSelRefsSection::makeSelRef(StringRef methName) {
857
857
objcSelref->parent = ConcatOutputSection::getOrCreateForInput (objcSelref);
858
858
inputSections.push_back (objcSelref);
859
859
objcSelref->isFinal = true ;
860
- methnameToSelref[CachedHashStringRef (methName )] = objcSelref;
860
+ methnameToSelref[CachedHashStringRef (methname )] = objcSelref;
861
861
return objcSelref;
862
862
}
863
863
864
- ConcatInputSection *ObjCSelRefsSection::getSelRef (StringRef methName ) {
865
- auto it = methnameToSelref.find (CachedHashStringRef (methName ));
864
+ ConcatInputSection *ObjCSelRefsSection::getSelRef (StringRef methname ) {
865
+ auto it = methnameToSelref.find (CachedHashStringRef (methname ));
866
866
if (it == methnameToSelref.end ())
867
867
return nullptr ;
868
868
return it->second ;
Original file line number Diff line number Diff line change @@ -320,14 +320,16 @@ class ObjCSelRefsSection final : public SyntheticSection {
320
320
ObjCSelRefsSection ();
321
321
void initialize ();
322
322
323
- // This SyntheticSection does not do its own writing, but instead uses the
324
- // creates SyntheticInputSection's and inserts them into inputSections
323
+ // This SyntheticSection does not do directly write data to the output, it is
324
+ // just a placeholder for easily creating SyntheticInputSection's which will
325
+ // be inserted into inputSections and handeled by the default writing
326
+ // mechanism.
325
327
uint64_t getSize () const override { return 0 ; }
326
328
bool isNeeded () const override { return false ; }
327
329
void writeTo (uint8_t *buf) const override {}
328
330
329
- ConcatInputSection *getSelRef (StringRef methName );
330
- ConcatInputSection *makeSelRef (StringRef methName );
331
+ ConcatInputSection *getSelRef (StringRef methname );
332
+ ConcatInputSection *makeSelRef (StringRef methname );
331
333
332
334
private:
333
335
llvm::DenseMap<llvm::CachedHashStringRef, ConcatInputSection *>
You can’t perform that action at this time.
0 commit comments