Avoid calling dump() in normal code
dump() is only available in debug builds and meant for debugger usage, normal code should use something like print(errs()); llvm-svn: 293364
This commit is contained in:
parent
ee6e3a598a
commit
95be172308
|
@ -514,7 +514,10 @@ public:
|
|||
// Dump the contents of the temporary file if that was requested.
|
||||
if (DumpTemporaryFiles) {
|
||||
errs() << ";\n; Object file bundler IR file.\n;\n";
|
||||
AuxModule.get()->dump();
|
||||
AuxModule.get()->print(errs(), nullptr,
|
||||
/*ShouldPreserveUseListOrder=*/false,
|
||||
/*IsForDebug=*/true);
|
||||
errs() << '\n';
|
||||
}
|
||||
|
||||
// Find clang in order to create the bundle binary.
|
||||
|
|
Loading…
Reference in New Issue