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:
Matthias Braun 2017-01-28 02:36:00 +00:00
parent ee6e3a598a
commit 95be172308
1 changed files with 4 additions and 1 deletions

View File

@ -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.