summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-13 22:54:11 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-13 22:54:11 +0000
commit63a0dd6540e59b13d54a201de01c3f2c3793196b (patch)
tree93e46f70f8923dd2d254987f9ee0abf72cdc9c47 /llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp
parent2c08051cc58d4b9b3ce2b5312e7f3b93dd431ffa (diff)
downloadbcm5719-llvm-63a0dd6540e59b13d54a201de01c3f2c3793196b.tar.gz
bcm5719-llvm-63a0dd6540e59b13d54a201de01c3f2c3793196b.zip
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! llvm-svn: 206139
Diffstat (limited to 'llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud