tools: avoid a string duplication
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Apr 2014 22:54:11 +0000 (22:54 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Apr 2014 22:54:11 +0000 (22:54 +0000)
commit1a1689881332cfe42ca15ead7314bea7ede3ca71
tree0987d10f7e7c5888c8b4bafb6894c18c0919e1fd
parent42ad510d31802b853fd59cf85a45b72619d2b7f9
tools: avoid a string duplication

The auxiliary file records are contiguous and only contain the filename.
Construct a StringRef directly rather than copying to a temporary buffer.

Suggested by majnemer on IRC!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206139 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objdump/llvm-objdump.cpp