[llvm-objdump] properly use c_str() with format("%s"). Improve getLibraryShortNameByIndex() error handling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Kledzik
2014-09-17 00:25:22 +00:00
parent 5c16c4e45a
commit 2b90611892
4 changed files with 13 additions and 18 deletions

View File

@@ -3,6 +3,6 @@
# RUN: && FileCheck %s < %t || cat %t
# CHECK: __DATA __la_symbol_ptr 0x100001010 libfoo.dylib _foo
# CHECK: __DATA __la_symbol_ptr 0x100001018 libbar.dylib _bar
# CHECK: __DATA __la_symbol_ptr 0x100001020 libSystem.B.dylib _malloc
# CHECK: __DATA __la_symbol_ptr 0x100001010 libfoo _foo
# CHECK: __DATA __la_symbol_ptr 0x100001018 libbar _bar
# CHECK: __DATA __la_symbol_ptr 0x100001020 libSystem _malloc