diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-13 22:54:11 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-13 22:54:11 +0000 |
| commit | 1a1689881332cfe42ca15ead7314bea7ede3ca71 (patch) | |
| tree | 0987d10f7e7c5888c8b4bafb6894c18c0919e1fd /lib/Bitcode/Reader | |
| parent | 42ad510d31802b853fd59cf85a45b72619d2b7f9 (diff) | |
| download | llvm-1a1689881332cfe42ca15ead7314bea7ede3ca71.tar.gz llvm-1a1689881332cfe42ca15ead7314bea7ede3ca71.tar.bz2 llvm-1a1689881332cfe42ca15ead7314bea7ede3ca71.tar.xz | |
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
Diffstat (limited to 'lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions
