summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-11-06 01:09:13 +0000
committerNick Kledzik <kledzik@apple.com>2014-11-06 01:09:13 +0000
commit5c4693d8d20ad5fb354f247907376cd9d07d514f (patch)
tree388a864aec3c9cd8bde47953bcb785961b81c347 /lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
parent30804c42207801541c84346fcc8ec6e5333def34 (diff)
downloadbcm5719-llvm-5c4693d8d20ad5fb354f247907376cd9d07d514f.tar.gz
bcm5719-llvm-5c4693d8d20ad5fb354f247907376cd9d07d514f.zip
[mach-o] Add support for interposing tuples section
Darwin uses two-level-namespace lookup for symbols which means the static linker records where each symbol must be found at runtime. Thus defining a symbol in a dylib loaded earlier will not effect where symbols needed by later dylibs will be found. Instead overriding is done through a section of type S_INTERPOSING which contains tuples of <interposer, interposee>. llvm-svn: 221421
Diffstat (limited to 'lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp')
-rw-r--r--lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
index 31fd4dbd235..72537b94cd3 100644
--- a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
+++ b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
@@ -437,6 +437,8 @@ template <> struct ScalarEnumerationTraits<lld::DefinedAtom::ContentType> {
DefinedAtom::typeObjC2CategoryList);
io.enumCase(value, "objc-class1", DefinedAtom::typeObjC1Class);
io.enumCase(value, "dtraceDOF", DefinedAtom::typeDTraceDOF);
+ io.enumCase(value, "interposing-tuples",
+ DefinedAtom::typeInterposingTuples);
io.enumCase(value, "lto-temp", DefinedAtom::typeTempLTO);
io.enumCase(value, "compact-unwind", DefinedAtom::typeCompactUnwindInfo);
io.enumCase(value, "unwind-info", DefinedAtom::typeProcessedUnwindInfo);
OpenPOWER on IntegriCloud