diff options
author | Eric Christopher <echristo@gmail.com> | 2019-08-02 19:10:37 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-08-02 19:10:37 +0000 |
commit | 5fb56b1966550857bd8ea3261ee69f0160355f15 (patch) | |
tree | bc75893085685c5910c87dd5cf50f600882622e7 /llvm/lib/MC/MCStreamer.cpp | |
parent | 98264863254d29deeb45bcbbdb298f246308d673 (diff) | |
download | llvm-5fb56b1966550857bd8ea3261ee69f0160355f15.zip llvm-5fb56b1966550857bd8ea3261ee69f0160355f15.tar.gz llvm-5fb56b1966550857bd8ea3261ee69f0160355f15.tar.bz2 |
Temporarily Revert "Changing representation of cv_def_range directives in Codeview debug info assembly format for better readability"
This is breaking bots and the author asked me to revert.
This reverts commit 367704.
llvm-svn: 367707
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 254eb2c..decbb96 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -327,56 +327,10 @@ void MCStreamer::EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, const MCSymbol *FnStartSym, const MCSymbol *FnEndSym) {} -/// Only call this on endian-specific types like ulittle16_t and little32_t, or -/// structs composed of them. -template <typename T> -static void copyBytesForDefRange(SmallString<20> &BytePrefix, - codeview::SymbolKind SymKind, - const T &DefRangeHeader) { - BytePrefix.resize(2 + sizeof(T)); - codeview::ulittle16_t SymKindLE = codeview::ulittle16_t(SymKind); - memcpy(&BytePrefix[0], &SymKindLE, 2); - memcpy(&BytePrefix[2], &DefRangeHeader, sizeof(T)); -} - void MCStreamer::EmitCVDefRangeDirective( ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> Ranges, StringRef FixedSizePortion) {} -void MCStreamer::EmitCVDefRangeDirective( - ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> Ranges, - codeview::DefRangeRegisterRelSym::Header DRHdr) { - SmallString<20> BytePrefix; - copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_REGISTER_REL, DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); -} - -void MCStreamer::EmitCVDefRangeDirective( - ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> Ranges, - codeview::DefRangeSubfieldRegisterSym::Header DRHdr) { - SmallString<20> BytePrefix; - copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_SUBFIELD_REGISTER, - DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); -} - -void MCStreamer::EmitCVDefRangeDirective( - ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> Ranges, - codeview::DefRangeRegisterSym::Header DRHdr) { - SmallString<20> BytePrefix; - copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_REGISTER, DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); -} - -void MCStreamer::EmitCVDefRangeDirective( - ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> Ranges, - codeview::DefRangeFramePointerRelSym::Header DRHdr) { - SmallString<20> BytePrefix; - copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_FRAMEPOINTER_REL, - DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); -} - void MCStreamer::EmitEHSymAttributes(const MCSymbol *Symbol, MCSymbol *EHSymbol) { } |