From f208b70fbc4dee78067b3c5bd6cb92aa3ba58a1e Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 4 Dec 2019 10:35:14 -0800 Subject: Revert "[Coverage] Revise format to reduce binary size" This reverts commit e18531595bba495946aa52c0a16b9f9238cff8bc. On Windows, there is an error: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/54963/steps/stage%201%20check/logs/stdio error: C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-merging.cpp.tmp.v1.o: Failed to load coverage: Malformed coverage data --- llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index ffc88913157..04c7e856b5d 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -74,6 +74,10 @@ cl::opt MemOPSizeLarge( namespace { +cl::opt DoNameCompression("enable-name-compression", + cl::desc("Enable name string compression"), + cl::init(true)); + cl::opt DoHashBasedCounterSplit( "hash-based-counter-split", cl::desc("Rename counter variable of a comdat function based on cfg hash"), @@ -912,7 +916,7 @@ void InstrProfiling::emitNameData() { std::string CompressedNameStr; if (Error E = collectPGOFuncNameStrings(ReferencedNames, CompressedNameStr, - DoInstrProfNameCompression)) { + DoNameCompression)) { report_fatal_error(toString(std::move(E)), false); } -- cgit v1.2.3