diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-02 20:01:03 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-02 20:01:03 +0000 |
commit | 9146fc8fd67cabc68a612908d909db7339f1e6c7 (patch) | |
tree | 55ef68331f0e5e1af74029c2d34ea513aee30291 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 61e62a5b04ef78e4122b5ec54c21fbd3d978d1e6 (diff) | |
download | llvm-9146fc8fd67cabc68a612908d909db7339f1e6c7.zip llvm-9146fc8fd67cabc68a612908d909db7339f1e6c7.tar.gz llvm-9146fc8fd67cabc68a612908d909db7339f1e6c7.tar.bz2 |
IR: Allow GenericDebugNode construction from MDString
Allow `GenericDebugNode` construction directly from `MDString`, rather
than requiring `StringRef`s. I've refactored the `StringRef`
constructors to use these. There's no real functionality change here,
except for exposing the lower-level API.
The purpose of this is to simplify construction of string operands when
reading bitcode. It's unnecessarily indirect to parse an `MDString` ID,
lookup the `MDString` in the bitcode reader list, get the `StringRef`
out of that, and then have `GenericDebugNode::getImpl()` use
`MDString::get()` to acquire the original `MDString`. Instead, this
allows the bitcode reader to directly pass in the `MDString`.
llvm-svn: 227848
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions