From 52b63b9f33525174c86bd8fd615c1e299a5c8f12 Mon Sep 17 00:00:00 2001 From: Thomas Viehmann Date: Tue, 30 Jul 2019 11:30:46 +0200 Subject: [PATCH] Print llvm source by default in ROCMModuleNode::GetSource (#3662) --- src/runtime/rocm/rocm_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/rocm/rocm_module.cc b/src/runtime/rocm/rocm_module.cc index 6531f97..0336bae 100644 --- a/src/runtime/rocm/rocm_module.cc +++ b/src/runtime/rocm/rocm_module.cc @@ -79,7 +79,7 @@ class ROCMModuleNode : public runtime::ModuleNode { std::string GetSource(const std::string& format) final { if (format == fmt_) { return data_; } - if (format == "llvm") { return hip_source_; } + if (format == "llvm" || format == "") { return hip_source_; } if (format == "asm") { return assembly_; } return ""; } -- 2.7.4