diff options
| author | Nick Kledzik <kledzik@apple.com> | 2012-02-15 00:38:09 +0000 |
|---|---|---|
| committer | Nick Kledzik <kledzik@apple.com> | 2012-02-15 00:38:09 +0000 |
| commit | 49d6cc8457edaf98f199eaf936103d010883c8d7 (patch) | |
| tree | 01dcf9b634e9160de53f4835cd95982a2a0062f3 /lld/lib/Core/YamlKeyValues.cpp | |
| parent | f0687634c38b558430669f6bd75c5c71752f1026 (diff) | |
| download | bcm5719-llvm-49d6cc8457edaf98f199eaf936103d010883c8d7.tar.gz bcm5719-llvm-49d6cc8457edaf98f199eaf936103d010883c8d7.zip | |
(no commit message)
llvm-svn: 150539
Diffstat (limited to 'lld/lib/Core/YamlKeyValues.cpp')
| -rw-r--r-- | lld/lib/Core/YamlKeyValues.cpp | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/lld/lib/Core/YamlKeyValues.cpp b/lld/lib/Core/YamlKeyValues.cpp index 9401aae949a..bb32aa88489 100644 --- a/lld/lib/Core/YamlKeyValues.cpp +++ b/lld/lib/Core/YamlKeyValues.cpp @@ -18,12 +18,12 @@ namespace yaml { const char* const KeyValues::nameKeyword = "name"; +const char* const KeyValues::refNameKeyword = "ref-name"; const char* const KeyValues::definitionKeyword = "definition"; const char* const KeyValues::scopeKeyword = "scope"; const char* const KeyValues::contentTypeKeyword = "type"; const char* const KeyValues::deadStripKindKeyword = "dead-strip"; const char* const KeyValues::sectionChoiceKeyword = "section-choice"; -const char* const KeyValues::internalNameKeyword = "internal-name"; const char* const KeyValues::interposableKeyword = "interposable"; const char* const KeyValues::mergeKeyword = "merge"; const char* const KeyValues::isThumbKeyword = "is-thumb"; @@ -31,8 +31,14 @@ const char* const KeyValues::isAliasKeyword = "is-alias"; const char* const KeyValues::sectionNameKeyword = "section-name"; const char* const KeyValues::contentKeyword = "content"; const char* const KeyValues::sizeKeyword = "size"; +const char* const KeyValues::fixupsKeyword = "fixups"; const char* const KeyValues::permissionsKeyword = "permissions"; const char* const KeyValues::weakImportKeyword = "weak-import"; +const char* const KeyValues::fixupsKindKeyword = "kind"; +const char* const KeyValues::fixupsOffsetKeyword = "offset"; +const char* const KeyValues::fixupsTargetKeyword = "target"; +const char* const KeyValues::fixupsAddendKeyword = "addend"; + const DefinedAtom::Definition KeyValues::definitionDefault = Atom::definitionRegular; @@ -43,7 +49,6 @@ const DefinedAtom::SectionChoice KeyValues::sectionChoiceDefault = DefinedA const DefinedAtom::Interposable KeyValues::interposableDefault = DefinedAtom::interposeNo; const DefinedAtom::Merge KeyValues::mergeDefault = DefinedAtom::mergeNo; const DefinedAtom::ContentPermissions KeyValues::permissionsDefault = DefinedAtom::permR__; -const bool KeyValues::internalNameDefault = false; const bool KeyValues::isThumbDefault = false; const bool KeyValues::isAliasDefault = false; const bool KeyValues::weakImportDefault = false; @@ -352,22 +357,6 @@ const char* KeyValues::permissions(DefinedAtom::ContentPermissions s) { -bool KeyValues::internalName(const char* s) -{ - if ( strcmp(s, "true") == 0 ) - return true; - else if ( strcmp(s, "false") == 0 ) - return false; - llvm::report_fatal_error("bad internal-name value"); -} - -const char* KeyValues::internalName(bool b) { - return b ? "true" : "false"; -} - - - - bool KeyValues::isThumb(const char* s) { if ( strcmp(s, "true") == 0 ) |

