Fix mapping of unmaterialized global values during metadata linking
[oota-llvm.git] / include / llvm / Transforms / Utils / ValueMapper.h
index 6f4cd24c849ffa2ae9600851fd038387bde74971..17ce4f4ab73dda73284d7ecf19bc86da5f26ee4d 100644 (file)
@@ -69,6 +69,10 @@ namespace llvm {
     /// Instruct the remapper to move distinct metadata instead of duplicating
     /// it when there are module-level changes.
     RF_MoveDistinctMDs = 4,
+
+    /// Any global values not in value map are mapped to null instead of
+    /// mapping to self. Illegal if RF_IgnoreMissingEntries is also set.
+    RF_NullMapMissingGlobalValues = 8,
   };
 
   static inline RemapFlags operator|(RemapFlags LHS, RemapFlags RHS) {