diff options
author | Zachary Turner <zturner@google.com> | 2017-12-13 22:33:58 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-12-13 22:33:58 +0000 |
commit | 048f8f99bf0292550a8c07a9e6e662b722d7523c (patch) | |
tree | 076576e7b59754253f1a3a213f9e3d24aabf5f67 /llvm/lib/ObjectYAML | |
parent | 67b04bd8acd4b048acee7c208b13b46e165a679e (diff) | |
download | llvm-048f8f99bf0292550a8c07a9e6e662b722d7523c.zip llvm-048f8f99bf0292550a8c07a9e6e662b722d7523c.tar.gz llvm-048f8f99bf0292550a8c07a9e6e662b722d7523c.tar.bz2 |
[CodeView] Teach clang to emit the .debug$H COFF section.
Currently this is an LLVM extension to the COFF spec which is
experimental and intended to speed up linking. For now it is
behind a hidden cl::opt flag, but in the future we can move it
to a "real" cc1 flag and have the driver pass it through whenever
it is appropriate.
The patch to actually make use of this section in lld will come
in a followup.
Differential Revision: https://reviews.llvm.org/D40917
llvm-svn: 320649
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r-- | llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp index b35e8ab..bbbd7c0 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp @@ -44,11 +44,11 @@ StringRef ScalarTraits<GlobalHash>::input(StringRef Scalar, void *Ctx, } // end namespace yaml } // end namespace llvm -DebugHSection llvm::CodeViewYAML::fromDebugH(ArrayRef<uint8_t> DebugT) { - assert(DebugT.size() >= 8); - assert((DebugT.size() - 8) % 20 == 0); +DebugHSection llvm::CodeViewYAML::fromDebugH(ArrayRef<uint8_t> DebugH) { + assert(DebugH.size() >= 8); + assert((DebugH.size() - 8) % 20 == 0); - BinaryStreamReader Reader(DebugT, llvm::support::little); + BinaryStreamReader Reader(DebugH, llvm::support::little); DebugHSection DHS; cantFail(Reader.readInteger(DHS.Magic)); cantFail(Reader.readInteger(DHS.Version)); |