@@ -339,48 +339,56 @@ namespace llvm {
339
339
BeginSymName);
340
340
}
341
341
342
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
342
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
343
343
unsigned Flags) {
344
344
return getELFSection (Section, Type, Flags, nullptr );
345
345
}
346
346
347
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
347
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
348
348
unsigned Flags, const char *BeginSymName) {
349
349
return getELFSection (Section, Type, Flags, 0 , " " , BeginSymName);
350
350
}
351
351
352
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
352
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
353
353
unsigned Flags, unsigned EntrySize,
354
- StringRef Group) {
354
+ const Twine & Group) {
355
355
return getELFSection (Section, Type, Flags, EntrySize, Group, nullptr );
356
356
}
357
357
358
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
358
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
359
359
unsigned Flags, unsigned EntrySize,
360
- StringRef Group, const char *BeginSymName) {
360
+ const Twine & Group, const char *BeginSymName) {
361
361
return getELFSection (Section, Type, Flags, EntrySize, Group, ~0 ,
362
362
BeginSymName);
363
363
}
364
364
365
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
365
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
366
366
unsigned Flags, unsigned EntrySize,
367
- StringRef Group, unsigned UniqueID) {
367
+ const Twine & Group, unsigned UniqueID) {
368
368
return getELFSection (Section, Type, Flags, EntrySize, Group, UniqueID,
369
369
nullptr );
370
370
}
371
371
372
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
372
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
373
373
unsigned Flags, unsigned EntrySize,
374
- StringRef Group, unsigned UniqueID,
374
+ const Twine & Group, unsigned UniqueID,
375
375
const char *BeginSymName);
376
376
377
- MCSectionELF *getELFSection (StringRef Section, unsigned Type,
377
+ MCSectionELF *getELFSection (const Twine & Section, unsigned Type,
378
378
unsigned Flags, unsigned EntrySize,
379
379
const MCSymbolELF *Group, unsigned UniqueID,
380
380
const char *BeginSymName,
381
381
const MCSectionELF *Associated);
382
382
383
- MCSectionELF *createELFRelSection (StringRef Name, unsigned Type,
383
+ // / Get a section with the provided group identifier. This section is
384
+ // / named by concatenating \p Prefix with '.' then \p Suffix. The \p Type
385
+ // / describes the type of the section and \p Flags are used to further
386
+ // / configure this named section.
387
+ MCSectionELF *getELFNamedSection (const Twine &Prefix, const Twine &Suffix,
388
+ unsigned Type, unsigned Flags,
389
+ unsigned EntrySize = 0 );
390
+
391
+ MCSectionELF *createELFRelSection (const Twine &Name, unsigned Type,
384
392
unsigned Flags, unsigned EntrySize,
385
393
const MCSymbolELF *Group,
386
394
const MCSectionELF *Associated);
0 commit comments