summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-28 02:36:00 +0000
committerMatthias Braun <matze@braunis.de>2017-01-28 02:36:00 +0000
commit95be17230856cd79de19d2f5637b081694154fcf (patch)
treee91a0a4f39376a5951cd090d297254967b984cc8 /clang
parentee6e3a598a73fe26281c997b442648929464ea3f (diff)
downloadbcm5719-llvm-95be17230856cd79de19d2f5637b081694154fcf.tar.gz
bcm5719-llvm-95be17230856cd79de19d2f5637b081694154fcf.zip
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
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
index 20988b48ede..f37868fb618 100644
--- a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -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.
OpenPOWER on IntegriCloud