[dsymutil] Implement ODR uniquing for C++ code.
[oota-llvm.git] / tools / dsymutil / dsymutil.cpp
index 50091935a44ee3d687b1a76e05e2f9cf400288e5..f063fb514dfe77206c97602066b0d7030f13ba0a 100644 (file)
@@ -47,6 +47,11 @@ static opt<bool>
              desc("Do the link in memory, but do not emit the result file."),
              init(false));
 
+static opt<bool>
+    NoODR("no-odr",
+          desc("Do not use ODR (One Definition Rule) for type uniquing."),
+          init(false));
+
 static opt<bool> DumpDebugMap(
     "dump-debug-map",
     desc("Parse and dump the debug map to standard output. Not DWARF link "
@@ -71,6 +76,7 @@ int main(int argc, char **argv) {
 
   Options.Verbose = Verbose;
   Options.NoOutput = NoOutput;
+  Options.NoODR = NoODR;
 
   llvm::InitializeAllTargetInfos();
   llvm::InitializeAllTargetMCs();