diff options
Diffstat (limited to 'lld/lib/ReaderWriter/YAML/YamlKeyValues.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/YAML/YamlKeyValues.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lld/lib/ReaderWriter/YAML/YamlKeyValues.cpp b/lld/lib/ReaderWriter/YAML/YamlKeyValues.cpp index 46120ad6716..d464f9282c2 100644 --- a/lld/lib/ReaderWriter/YAML/YamlKeyValues.cpp +++ b/lld/lib/ReaderWriter/YAML/YamlKeyValues.cpp @@ -75,10 +75,10 @@ struct ScopeMapping { }; static const ScopeMapping scopeMappings[] = { - { "global", DefinedAtom::scopeGlobal }, - { "hidden", DefinedAtom::scopeLinkageUnit }, - { "static", DefinedAtom::scopeTranslationUnit }, - { nullptr, DefinedAtom::scopeGlobal } + { "global", Atom::scopeGlobal }, + { "hidden", Atom::scopeLinkageUnit }, + { "static", Atom::scopeTranslationUnit }, + { nullptr, Atom::scopeGlobal } }; bool KeyValues::scope(StringRef s, DefinedAtom::Scope &out) @@ -92,7 +92,7 @@ bool KeyValues::scope(StringRef s, DefinedAtom::Scope &out) return true; } -const char* KeyValues::scope(DefinedAtom::Scope s) { +const char* KeyValues::scope(Atom::Scope s) { for (const ScopeMapping* p = scopeMappings; p->string != nullptr; ++p) { if ( p->value == s ) return p->string; @@ -106,7 +106,6 @@ const char* KeyValues::scope(DefinedAtom::Scope s) { - struct ContentTypeMapping { const char* string; DefinedAtom::ContentType value; |

