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 | 5c7c640d1d60198c97aeff2283352adc98c5c9f3 (patch) | |
tree | 16fb00c009040ed4347931661bc5469ef4a03bd0 /lib/ObjectYAML | |
parent | 9d2ef8532ff8987b63d321067d785e2236fcbe28 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML')
-rw-r--r-- | lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp b/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp index b35e8ab05ad..bbbd7c06772 100644 --- a/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp +++ b/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)); |