summaryrefslogtreecommitdiffstats
path: root/tools/llvm-objdump
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2013-08-21 16:13:25 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2013-08-21 16:13:25 +0000
commit7413b54c897c9a7bd04e7b918128d0279be9a126 (patch)
tree7ce66aaadc5ee648d396839d9d8ff3efd99dbd1c /tools/llvm-objdump
parent8fea8f2d822a38daa5438a9be7938b3f93ac8da0 (diff)
downloadexternal_llvm-7413b54c897c9a7bd04e7b918128d0279be9a126.zip
external_llvm-7413b54c897c9a7bd04e7b918128d0279be9a126.tar.gz
external_llvm-7413b54c897c9a7bd04e7b918128d0279be9a126.tar.bz2
Add basic YAML MC CFG testcase.
Drive-by llvm-objdump cleanup (don't hardcode ToolName). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump')
-rw-r--r--tools/llvm-objdump/llvm-objdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp
index a4cd6a2..8065787 100644
--- a/tools/llvm-objdump/llvm-objdump.cpp
+++ b/tools/llvm-objdump/llvm-objdump.cpp
@@ -374,7 +374,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
std::string Error;
raw_fd_ostream YAMLOut(YAMLCFG.c_str(), Error);
if (!Error.empty()) {
- errs() << "llvm-objdump: warning: " << Error << '\n';
+ errs() << ToolName << ": warning: " << Error << '\n';
return;
}
mcmodule2yaml(YAMLOut, *Mod, *MII, *MRI);