Passing in a std::unique_ptr should help find errors when the module is used after being linked into another module. llvm-svn: 255842
Fixes pr21901. llvm-svn: 224782
In practice this means: * Always using -g flag. * Embedding -cclib -lstdc++ into the corresponding cma/cmxa file. This also moves -lstdc++ in a single place. * Using caml_named_value instead of a homegrown mechanism. llvm-svn: 220843
llvm-svn: 193951