mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Save a std::string.
The group names are always symbol names, so we can use a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -164,7 +164,7 @@ namespace llvm {
|
||||
|
||||
struct ELFSectionKey {
|
||||
std::string SectionName;
|
||||
std::string GroupName;
|
||||
StringRef GroupName;
|
||||
ELFSectionKey(StringRef SectionName, StringRef GroupName)
|
||||
: SectionName(SectionName), GroupName(GroupName) {}
|
||||
bool operator<(const ELFSectionKey &Other) const {
|
||||
@@ -176,7 +176,7 @@ namespace llvm {
|
||||
|
||||
struct COFFSectionKey {
|
||||
std::string SectionName;
|
||||
std::string GroupName;
|
||||
StringRef GroupName;
|
||||
int SelectionKey;
|
||||
COFFSectionKey(StringRef SectionName, StringRef GroupName,
|
||||
int SelectionKey)
|
||||
|
Reference in New Issue
Block a user